1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +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:
Toby Zerner
2015-08-31 14:03:08 +09:30
parent 41e7ee712b
commit 7b0f599b48

View File

@@ -181,7 +181,7 @@ class PostStream extends mixin(Component, evented) {
.map(id => {
const post = app.store.getById('posts', id);
return post && post.discussion() ? post : null;
return post && post.discussion() && post.user() !== false ? post : null;
});
}