From a5cbc1ffbd28a3afc82a4e52bee6ae8f559c0172 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 17 Aug 2023 02:17:49 +0300 Subject: [PATCH] Revert "try random shit to fix posting in WPD" This reverts commit 12fbd8da83167a7fb9fe4b4b355710142e65198c. --- files/routes/allroutes.py | 2 +- files/routes/posts.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index 41b850901..b079c953f 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -62,7 +62,7 @@ def after_request(response): if hasattr(g, 'v') and g.v: user_id = g.v.id - if SITE != 'watchpeopledie.tv' and not session.get("GLOBAL") and request.method == "POST": + if not session.get("GLOBAL") and request.method == "POST": timestamp = int(time.time()) if (g.v.last_active + LOGGEDIN_ACTIVE_TIME) < timestamp: g.v.last_active = timestamp diff --git a/files/routes/posts.py b/files/routes/posts.py index feedd534a..ed9cd34f9 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -73,8 +73,7 @@ def publish(pid, v): cache.delete_memoized(frontlist) cache.delete_memoized(userpagelisting) - if SITE != 'watchpeopledie.tv': - execute_snappy(p, v) + execute_snappy(p, v) return {"message": "Post has been published successfully!"} @@ -680,7 +679,7 @@ def submit_post(v, sub=None): for key in redis_instance.scan_iter(key_pattern): redis_instance.delete(key) - if SITE != 'watchpeopledie.tv' and not p.private: + if not p.private: execute_snappy(p, v) g.db.commit() #Necessary, do NOT remove