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