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

@ -122,6 +122,14 @@ class PostsController < ApplicationController
display_post(post)
end
def remove_bookmark_by_number
if current_user
post = find_post_from_params_by_number
PostAction.remove_act(current_user, post, PostActionType.types[:bookmark])
end
render nothing: true
end
def reply_history
post = find_post_from_params
render_serialized(post.reply_history, PostSerializer)