diff --git a/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php b/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php index 2417c3857..c408e3f0e 100755 --- a/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php +++ b/extensions/mentions/src/Listener/AddPostMentionedByRelationship.php @@ -142,6 +142,10 @@ class AddPostMentionedByRelationship } if (isset($posts)) { + $posts = array_filter($posts, function ($post) { + return is_object($post); + }); + $ids = []; // Once we have the posts, construct a list of the IDs of all of