mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 20:05:32 +08:00
whitspace
This commit is contained in:
parent
68e6405aca
commit
a232e77fa8
@ -21,11 +21,11 @@ class ListableTopicSerializer < BasicTopicSerializer
|
||||
def age
|
||||
AgeWords.age_words(Time.now - (object.created_at || Time.now))
|
||||
end
|
||||
|
||||
|
||||
def bumped
|
||||
object.created_at < object.bumped_at
|
||||
end
|
||||
|
||||
|
||||
def bumped_age
|
||||
return nil if object.bumped_at.blank?
|
||||
AgeWords.age_words(Time.now - object.bumped_at)
|
||||
|
Loading…
x
Reference in New Issue
Block a user