| @@ -27,9 +27,12 @@ | ||
| 27 | 27 | * |
| 28 | 28 | * @return array Rhe activity object array. |
| 29 | 29 | */ |
| 30 | 30 | public static function filter_activity_object( $activity ) { |
| 31 | - if ( ! empty( $activity['summary'] ) && is_actor( $activity ) ) { | |
| 31 | + /* phpcs:ignore Squiz.PHP.CommentedOutCode.Found | |
| 32 | + Only changed it for Person and Group as long is not merged: https://github.com/mastodon/mastodon/pull/28629 | |
| 33 | + */ | |
| 34 | + if ( ! empty( $activity['summary'] ) && in_array( $activity['type'], array( 'Person', 'Group' ), true ) ) { | |
| 32 | 35 | $activity['summary'] = self::the_content( $activity['summary'] ); |
| 33 | 36 | } |
| 34 | 37 | |
| 35 | 38 | if ( ! empty( $activity['content'] ) ) { |