From dc230cb7e4454c2d727961960e0da09d7ce6b3e1 Mon Sep 17 00:00:00 2001 From: riking Date: Wed, 19 Mar 2014 17:04:42 -0700 Subject: [PATCH] Only warn about necromancy when replying --- lib/composer_messages_finder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/composer_messages_finder.rb b/lib/composer_messages_finder.rb index 50394baed1a..8f29eab0721 100644 --- a/lib/composer_messages_finder.rb +++ b/lib/composer_messages_finder.rb @@ -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