data.loggedIn for new posts

v1.18.x
psychobunny 9 years ago
parent fa3dc76793
commit 7cc8390265

@ -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;

Loading…
Cancel
Save