data.loggedIn for new posts

This commit is contained in:
psychobunny
2016-01-14 13:24:27 -05:00
parent fa3dc76793
commit 7cc8390265

View File

@@ -21,6 +21,7 @@ define('forum/topic/posts', [
return;
}
data.loggedIn = app.user.uid ? true : false;
data.posts.forEach(function(post) {
post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
post.display_moderator_tools = post.selfPost || ajaxify.data.isAdminOrMod;