mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
Fix fatal error when viewing a discussion with multiple pages of posts
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user