mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +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:
@ -355,9 +355,9 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
protected
|
||||
|
||||
def render_post_json(post)
|
||||
def render_post_json(post, add_raw=true)
|
||||
post_serializer = PostSerializer.new(post, scope: guardian, root: false)
|
||||
post_serializer.add_raw = true
|
||||
post_serializer.add_raw = add_raw
|
||||
post_serializer.topic_slug = post.topic.slug if post.topic.present?
|
||||
|
||||
counts = PostAction.counts_for([post], current_user)
|
||||
|
Reference in New Issue
Block a user