FEATURE: remove bookmark button in activity feed

This commit is contained in:
Régis Hanol
2014-05-09 17:49:39 +02:00
parent 9125453628
commit bc3de84ebf
15 changed files with 110 additions and 40 deletions

View File

@@ -68,8 +68,12 @@ class UserActionSerializer < ApplicationSerializer
object.post_type == Post.types[:moderator_action]
end
def edit_reason
object.edit_reason if object.action_type == UserAction::EDIT
def include_reply_to_post_number?
object.action_type == UserAction::REPLY
end
def include_edit_reason?
object.action_type == UserAction::EDIT
end
private