forked from rDrama/rDrama
fix 500 error
parent
891fa80388
commit
4c38cb24ac
|
@ -297,7 +297,7 @@ class Comment(Base):
|
||||||
|
|
||||||
if f'{s}{o.body}{s}' in body:
|
if f'{s}{o.body}{s}' in body:
|
||||||
body = body.replace(f'{s}{o.body}{s}', option_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
|
body += option_body
|
||||||
|
|
||||||
if not self.ghost and self.author.show_sig(v):
|
if not self.ghost and self.author.show_sig(v):
|
||||||
|
|
|
@ -326,7 +326,7 @@ class Submission(Base):
|
||||||
|
|
||||||
if f'{s}{o.body}{s}' in body:
|
if f'{s}{o.body}{s}' in body:
|
||||||
body = body.replace(f'{s}{o.body}{s}', option_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
|
body += option_body
|
||||||
|
|
||||||
if not listing and not self.ghost and self.author.show_sig(v):
|
if not listing and not self.ghost and self.author.show_sig(v):
|
||||||
|
|
Loading…
Reference in New Issue