FIX: check if add_post_custom_fields_allowlister exisits
This commit is contained in:
parent
39c326d648
commit
36579b774f
|
@ -251,12 +251,12 @@ SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO Drop after Discourse 2.6.0 release
|
# TODO Drop after Discourse 2.6.0 release
|
||||||
if TopicView.respond_to?(:add_post_custom_fields_whitelister)
|
if TopicView.respond_to?(:add_post_custom_fields_allowlister)
|
||||||
TopicView.add_post_custom_fields_whitelister do |user|
|
TopicView.add_post_custom_fields_allowlister do |user|
|
||||||
["is_accepted_answer"]
|
["is_accepted_answer"]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
TopicView.add_post_custom_fields_allowlister do |user|
|
TopicView.add_post_custom_fields_whitelister do |user|
|
||||||
["is_accepted_answer"]
|
["is_accepted_answer"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue