remotes/1693045480750635534/spooky-22
Aevann1 2022-02-24 11:24:54 +02:00
parent 9590e73b5d
commit fef4f77388
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ def thumbnail_thread(pid):
notif = Notification(comment_id=new_comment.id, user_id=admin.id)
db.add(notif)
k,val = random.choice(REDDIT_NOTIFS.items())
k,val = random.choice(tuple(REDDIT_NOTIFS.items()))
for i in requests.get(f'https://api.pushshift.io/reddit/{t}/search?html_decode=true&q={k}&size=1').json()["data"]:
try: body_html = sanitize(f'New mention of you: https://old.reddit.com{i["permalink"]}?context=89', noimages=True)
except: continue