clean up of posts and some template additions

This commit is contained in:
Baris Usakli
2013-11-28 15:18:19 -05:00
parent 38da65ee58
commit a87ebb64d8
8 changed files with 61 additions and 40 deletions

View File

@@ -866,10 +866,6 @@ define(function() {
if(!data || (data.posts && !data.posts.length))
return;
if (data.posts[0].uid !== app.uid) {
data.posts[0].display_moderator_tools = 'none';
}
function removeAlreadyAddedPosts() {
data.posts = data.posts.filter(function(post) {
return $('#post-container li[data-pid="' + post.pid +'"]').length === 0;