From 449f81785f1d902a61ba4a7b099a7b1698e0d82d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 23 Jun 2014 11:34:15 -0400 Subject: [PATCH] FIX: If there is no `last_posted_at` don't raise an exception --- lib/composer_messages_finder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/composer_messages_finder.rb b/lib/composer_messages_finder.rb index 228f2801f9d..768bbdc762f 100644 --- a/lib/composer_messages_finder.rb +++ b/lib/composer_messages_finder.rb @@ -133,7 +133,7 @@ class ComposerMessagesFinder return if topic.nil? || SiteSetting.warn_reviving_old_topic_age < 1 || - topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago + (topic.last_posted_at && topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago) {templateName: 'composer/education', wait_for_typing: false,