mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:12:46 +08:00
5adf5b527d
Use this event to filter the list of auto bumped topics. EG: on(:filter_auto_bump_topics) do |_category, filters| filters.push(->(r) { r.where(<<~SQL) NOT EXISTS( SELECT 1 FROM topic_custom_fields WHERE topic_id = topics.id AND name = 'accepted_answer_post_id' ) SQL }) end |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |