fix fetch time
This commit is contained in:
parent
0f93065ac4
commit
23785999f1
|
@ -52,7 +52,7 @@ module WelcomeHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def topic_last_time topic
|
def topic_last_time topic
|
||||||
return topic.event_datetime unless topic.methods.to_s =~ %r[last_reply]
|
return topic.event_datetime if ( !(topic.methods.to_s =~ %r[last_reply]) && topic.last_reply.nil? )
|
||||||
topic.last_reply.event_datetime
|
topic.last_reply.event_datetime
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue