fdMerge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-03-04 17:34:06 +00:00
commit b661faffd8
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ class Comment(Base):
@property
@lazy
def age_string(self):
if self.notif_utc: timestamp = self.notif_utc
notif_utc = self.__dict__.get("notif_utc", None)
if notif_utc: timestamp = notif_utc
elif self.created_utc: timestamp = self.created_utc
else: return None