mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:22:40 +08:00
FIX: don't stop youtube when liking a post
Also fixes post action create/destroy api not to include post raw.
This commit is contained in:
@ -22,7 +22,7 @@ class PostActionsController < ApplicationController
|
||||
else
|
||||
# We need to reload or otherwise we are showing the old values on the front end
|
||||
@post.reload
|
||||
render_post_json(@post)
|
||||
render_post_json(@post, _add_raw = false)
|
||||
end
|
||||
end
|
||||
|
||||
@ -43,7 +43,7 @@ class PostActionsController < ApplicationController
|
||||
PostAction.remove_act(current_user, @post, post_action.post_action_type_id)
|
||||
|
||||
@post.reload
|
||||
render_post_json(@post)
|
||||
render_post_json(@post, _add_raw = false)
|
||||
end
|
||||
|
||||
def defer_flags
|
||||
|
Reference in New Issue
Block a user