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:
Sam
2014-09-25 12:02:41 +10:00
parent c43f6455f2
commit e14e8f64bc
3 changed files with 18 additions and 6 deletions

View File

@ -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