mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Don't include all html builders on client and server side
This commit is contained in:
@ -448,7 +448,9 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
DiscoursePluginRegistry.html_builders.each do |name, blk|
|
||||
data[name] = blk.call(self)
|
||||
if name.start_with?("client:")
|
||||
data[name.sub(/^client:/, '')] = blk.call(self)
|
||||
end
|
||||
end
|
||||
|
||||
MultiJson.dump(data)
|
||||
|
Reference in New Issue
Block a user