mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 06:13:48 +08:00
13 lines
303 B
Ruby
13 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
module FlagQuery
|
|
def self.plugin_post_custom_fields
|
|
@plugin_post_custom_fields ||= {}
|
|
end
|
|
|
|
# Allow plugins to add custom fields to the flag views
|
|
def self.register_plugin_post_custom_field(field, plugin)
|
|
plugin_post_custom_fields[field] = plugin
|
|
end
|
|
end
|