diff --git a/files/routes/comments.py b/files/routes/comments.py index ac1da9b8c..7b6076af5 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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 diff --git a/files/routes/posts.py b/files/routes/posts.py index 03deb6efe..48cfd4991 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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')