Skip to content

Commit

Permalink
Fixfor urls and hashtags in profiles are not converted (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken authored Oct 14, 2024
1 parent 17f99cd commit 7c0cb7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions includes/class-hashtag.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public static function init() {
*/
public static function filter_activity_object( $activity ) {
/* phpcs:ignore Squiz.PHP.CommentedOutCode.Found
Removed until this is merged: https://github.com/mastodon/mastodon/pull/28629
if ( ! empty( $activity['summary'] ) ) {
Only changed it for Person and Group as long is not merged: https://github.com/mastodon/mastodon/pull/28629
*/
if ( ! empty( $activity['summary'] ) && in_array( $activity['type'], array( 'Person', 'Group' ), true ) ) {
$activity['summary'] = self::the_content( $activity['summary'] );
}
*/

if ( ! empty( $activity['content'] ) ) {
$activity['content'] = self::the_content( $activity['content'] );
Expand Down
6 changes: 3 additions & 3 deletions includes/class-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public static function init() {
*/
public static function filter_activity_object( $activity ) {
/* phpcs:ignore Squiz.PHP.CommentedOutCode.Found
Removed until this is merged: https://github.com/mastodon/mastodon/pull/28629
if ( ! empty( $activity['summary'] ) ) {
Only changed it for Person and Group as long is not merged: https://github.com/mastodon/mastodon/pull/28629
*/
if ( ! empty( $activity['summary'] ) && in_array( $activity['type'], array( 'Person', 'Group' ), true ) ) {
$activity['summary'] = self::the_content( $activity['summary'] );
}
*/

if ( ! empty( $activity['content'] ) ) {
$activity['content'] = self::the_content( $activity['content'] );
Expand Down

0 comments on commit 7c0cb7f

Please sign in to comment.