dont redirect to a repost for chadmins

master
Aevann1 2022-10-18 12:26:44 +02:00
parent eff2d35a00
commit 3e7b37ec35
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ def submit_post(v, sub=None):
Submission.deleted_utc == 0,
Submission.is_banned == False
).first()
if repost and FEATURES['REPOST_DETECTION']:
if repost and FEATURES['REPOST_DETECTION'] and not v.admin_level:
return redirect(repost.permalink)
domain_obj = get_domain(domain)