forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-13 03:42:48 +02:00
parent 95aa69173a
commit 170177b64d
2 changed files with 5 additions and 5 deletions

View File

@ -873,9 +873,9 @@ def edit_comment(cid, v):
@auth_required
def delete_comment(cid, v):
comment = get_comment(cid, v=v)
c = get_comment(cid, v=v)
if not comment.deleted_utc:
if not c.deleted_utc:
if c.author_id != v.id: abort(403)
@ -894,9 +894,9 @@ def delete_comment(cid, v):
@auth_required
def undelete_comment(cid, v):
comment = get_comment(cid, v=v)
c = get_comment(cid, v=v)
if comment.deleted_utc:
if c.deleted_utc:
if c.author_id != v.id: abort(403)
c.deleted_utc = 0

View File

@ -722,7 +722,7 @@ def thumbnail_thread(pid):
if SITE_NAME == 'Drama':
for t in ("submission","comment"):
word = random.choice(('rdrama','marsey'))
word = random.choice(('rdrama','marsey','2much4you.net'))
try:
data = requests.get(f'https://api.pushshift.io/reddit/{t}/search?html_decode=true&q={word}&size=1')