mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
whitelisted correctly later on
This commit is contained in:
parent
539ca73668
commit
bbef1e3493
1 changed files with 0 additions and 9 deletions
|
@ -14,15 +14,6 @@ VOTES_CUSTOM_FIELD ||= "polls-votes".freeze
|
|||
|
||||
after_initialize do
|
||||
|
||||
# PERF, avoids N+1 in serializer
|
||||
TopicView.add_post_custom_fields_whitelister do |user|
|
||||
POLLS_CUSTOM_FIELD
|
||||
end
|
||||
|
||||
TopicView.add_post_custom_fields_whitelister do |user|
|
||||
VOTES_CUSTOM_FIELD
|
||||
end
|
||||
|
||||
# remove "Vote Now!" & "Show Results" links in emails
|
||||
Email::Styles.register_plugin_style do |fragment|
|
||||
fragment.css(".poll a.cast-votes, .poll a.toggle-results").each(&:remove)
|
||||
|
|
Loading…
Reference in a new issue