BUGFIXES: properly deal with bookmarks and deleted posts

BUGFIX: removing a bookmark from the activity feed was busted for deleted posts
BUGFIX: delete associated user actions when deleting a post
This commit is contained in:
Régis Hanol
2014-06-04 17:41:11 +02:00
parent 72abb6e274
commit 0df666277d
12 changed files with 69 additions and 47 deletions

View File

@@ -207,7 +207,7 @@ class TopicView
end
def all_post_actions
@all_post_actions ||= PostAction.counts_for(posts, @user)
@all_post_actions ||= PostAction.counts_for(@posts, @user)
end
def links