fix 500 error

pull/136/head
Aevann 2023-03-01 00:39:39 +02:00
parent 891fa80388
commit 4c38cb24ac
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ class Comment(Base):
if f'{s}{o.body}{s}' in body:
body = body.replace(f'{s}{o.body}{s}', option_body)
elif o.created_utc < 1677622477:
elif not o.created_utc or o.created_utc < 1677622477:
body += option_body
if not self.ghost and self.author.show_sig(v):

View File

@ -326,7 +326,7 @@ class Submission(Base):
if f'{s}{o.body}{s}' in body:
body = body.replace(f'{s}{o.body}{s}', option_body)
elif o.created_utc < 1677622477:
elif not o.created_utc or o.created_utc < 1677622477:
body += option_body
if not listing and not self.ghost and self.author.show_sig(v):