PluginProbe
ActivityPub / 5.7.0
ActivityPub v5.7.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/class-link.php +4 -1 8.2.15.7.0 View file →
@@ -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'] ) ) {