mirror of
https://github.com/flarum/core.git
synced 2025-07-28 20:20:34 +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)) {
|
if (isset($posts)) {
|
||||||
|
$posts = array_filter($posts, function ($post) {
|
||||||
|
return is_object($post);
|
||||||
|
});
|
||||||
|
|
||||||
$ids = [];
|
$ids = [];
|
||||||
|
|
||||||
// Once we have the posts, construct a list of the IDs of all of
|
// Once we have the posts, construct a list of the IDs of all of
|
||||||
|
Reference in New Issue
Block a user