Temporary deletion special case by Carp request.

master
Snakes 2022-10-10 23:47:39 -04:00
parent 319d3e7324
commit 33d99f86e6
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 3 additions and 0 deletions

View File

@ -1092,6 +1092,9 @@ def delete_post_pid(pid, v):
post = get_post(pid)
if post.author_id != v.id: abort(403)
# Temporary special logic by Carp request for events of 2022-10-10
if SITE_NAME == 'rDrama' and post.author_id == 3161: abort(403)
if not post.deleted_utc:
post.deleted_utc = int(time.time())
post.is_pinned = False