Only warn about necromancy when replying

This commit is contained in:
riking 2014-03-19 17:04:42 -07:00
parent 52fbce07ed
commit dc230cb7e4
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ class ComposerMessagesFinder
topic = Topic.where(id: @details[:topic_id]).first
return unless replying?
return if topic.nil? ||
SiteSetting.warn_reviving_old_topic_age < 1 ||
topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago