xvc
This commit is contained in:
parent
bc0909e8dc
commit
5d47158e5f
3 changed files with 17 additions and 16 deletions
|
@ -766,7 +766,7 @@ def thumbnail_thread(pid):
|
|||
|
||||
body_html = sanitize(f'New {word} mention: https://old.reddit.com{i["permalink"]}?context=89', noimages=True)
|
||||
|
||||
existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1, sentto=2).one_or_none()
|
||||
existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1).one_or_none()
|
||||
|
||||
if existing_comment: break
|
||||
|
||||
|
@ -775,7 +775,6 @@ def thumbnail_thread(pid):
|
|||
distinguish_level=6,
|
||||
body_html=body_html,
|
||||
level=1,
|
||||
sentto=0,
|
||||
)
|
||||
db.add(new_comment)
|
||||
db.flush()
|
||||
|
@ -817,7 +816,7 @@ def thumbnail_thread(pid):
|
|||
for i in data:
|
||||
body_html = sanitize(f'New pcmemes mention: https://old.reddit.com{i["permalink"]}?context=89', noimages=True)
|
||||
|
||||
existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1, sentto=2).one_or_none()
|
||||
existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1).one_or_none()
|
||||
|
||||
if existing_comment: break
|
||||
|
||||
|
@ -825,8 +824,7 @@ def thumbnail_thread(pid):
|
|||
parent_submission=None,
|
||||
distinguish_level=6,
|
||||
body_html=body_html,
|
||||
level=1,
|
||||
sentto=2,
|
||||
level=1
|
||||
)
|
||||
db.add(new_comment)
|
||||
db.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue