mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Can refresh queued posts via button
This commit is contained in:
@@ -224,7 +224,14 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def render_json_dump(obj, opts=nil)
|
||||
opts ||= {}
|
||||
obj['__rest_serializer'] = "1" if opts[:rest_serializer]
|
||||
if opts[:rest_serializer]
|
||||
obj['__rest_serializer'] = "1"
|
||||
opts.each do |k, v|
|
||||
obj[k] = v if k.to_s.start_with?("refresh_")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
render json: MultiJson.dump(obj), status: opts[:status] || 200
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user