mirror of
https://github.com/flarum/core.git
synced 2025-08-13 20:04:24 +02:00
Compare commits
1 Commits
sm/lower-r
...
dk/DISCUSS
Author | SHA1 | Date | |
---|---|---|---|
|
dff35c1046 |
@@ -48,7 +48,7 @@ class LoadMentionedByRelationship
|
||||
|
||||
if ($data instanceof Discussion) {
|
||||
// @phpstan-ignore-next-line
|
||||
$loadable = $data->newCollection($data->posts)->filter(function ($post) {
|
||||
$loadable = $data->newCollection((array) $data->posts)->filter(function ($post) {
|
||||
return $post instanceof Post;
|
||||
});
|
||||
} elseif ($data instanceof Collection) {
|
||||
|
Reference in New Issue
Block a user