1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 03:33:42 +01: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 5af5f1fc77
commit 2438bbfd41

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;
});
}