mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
FIX: Don't raise an exception when last_posted_at
is nil
This commit is contained in:
parent
449f81785f
commit
a188ba77dc
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ class ComposerMessagesFinder
|
|||
|
||||
return if topic.nil? ||
|
||||
SiteSetting.warn_reviving_old_topic_age < 1 ||
|
||||
(topic.last_posted_at && topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago)
|
||||
topic.last_posted_at.nil? ||
|
||||
topic.last_posted_at > SiteSetting.warn_reviving_old_topic_age.days.ago
|
||||
|
||||
{templateName: 'composer/education',
|
||||
wait_for_typing: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue