mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 23:44:48 +08:00
Only warn about necromancy when replying
This commit is contained in:
@ -129,6 +129,8 @@ class ComposerMessagesFinder
|
|||||||
|
|
||||||
topic = Topic.where(id: @details[:topic_id]).first
|
topic = Topic.where(id: @details[:topic_id]).first
|
||||||
|
|
||||||
|
return unless replying?
|
||||||
|
|
||||||
return if topic.nil? ||
|
return if topic.nil? ||
|
||||||
SiteSetting.warn_reviving_old_topic_age < 1 ||
|
SiteSetting.warn_reviving_old_topic_age < 1 ||
|
||||||
topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago
|
topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago
|
||||||
|
Reference in New Issue
Block a user