mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Reload post if user relationship isn't loaded
May fix #295, but haven't been able to reproduce/test.
This commit is contained in:
@@ -181,7 +181,7 @@ class PostStream extends mixin(Component, evented) {
|
|||||||
.map(id => {
|
.map(id => {
|
||||||
const post = app.store.getById('posts', id);
|
const post = app.store.getById('posts', id);
|
||||||
|
|
||||||
return post && post.discussion() ? post : null;
|
return post && post.discussion() && post.user() !== false ? post : null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user