mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:16:08 +08:00
FIX: If there is no last_posted_at
don't raise an exception
This commit is contained in:
parent
823e32462d
commit
449f81785f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user