mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: remove bookmark button in activity feed
This commit is contained in:
parent
9125453628
commit
bc3de84ebf
15 changed files with 110 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue