diff --git a/files/routes/admin.py b/files/routes/admin.py index 02acc9812..77d689d06 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -525,7 +525,7 @@ def reported_comments(v): def admin_home(v): with open('disable_signups', 'r') as f: x = f.read() - if CF_ZONE == '3435tdfsdudebussylmaoxxt43': response = 'high' + if CF_ZONE == 'blahblahblah': response = 'high' else: response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5).json()['result']['value'] x2 = response == 'under_attack' diff --git a/files/routes/comments.py b/files/routes/comments.py index fab641398..014854584 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -25,7 +25,7 @@ d = Dict("en_US") IMGUR_KEY = environ.get("IMGUR_KEY").strip() -if PUSHER_ID != '3435tdfsdudebussylmaoxxt43': +if PUSHER_ID != 'blahblahblah': beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY) WORDLE_COLOR_MAPPINGS = {-1: "🟥", 0: "🟨", 1: "🟩"} @@ -637,7 +637,7 @@ def api_comment(v): n = Notification(comment_id=c.id, user_id=x) g.db.add(n) - if parent.author.id != v.id and PUSHER_ID != '3435tdfsdudebussylmaoxxt43': + if parent.author.id != v.id and PUSHER_ID != 'blahblahblah': gevent.spawn(pusher_thread, f'{request.host}{parent.author.id}', c) diff --git a/files/routes/users.py b/files/routes/users.py index b5a9fc523..bc2e5de93 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -14,7 +14,7 @@ from collections import Counter import gevent from sys import stdout -if PUSHER_ID != '3435tdfsdudebussylmaoxxt43': +if PUSHER_ID != 'blahblahblah': beams_client = PushNotifications(instance_id=PUSHER_ID, secret_key=PUSHER_KEY) def pusher_thread2(interests, notifbody, username): @@ -582,7 +582,7 @@ def message2(v, username): message = request.values.get("message", "").strip()[:10000].strip() - if not message: return {"error": "message is empty"} + if not message: return {"error": "Message is empty!"} if 'linkedin.com' in message: return {"error": "This domain 'linkedin.com' is banned."}, 403 @@ -611,7 +611,7 @@ def message2(v, username): notif = Notification(comment_id=c.id, user_id=user.id) g.db.add(notif) - if PUSHER_ID != '3435tdfsdudebussylmaoxxt43': + if PUSHER_ID != 'blahblahblah': if len(message) > 500: notifbody = message[:500] + '...' else: notifbody = message @@ -629,7 +629,7 @@ def messagereply(v): message = request.values.get("body", "").strip()[:10000].strip() - if not message: return {"error": "message is empty"} + if not message: return {"error": "Message is empty!"} if 'linkedin.com' in message: return {"error": "this domain 'linkedin.com' is banned"} @@ -659,7 +659,7 @@ def messagereply(v): notif = Notification(comment_id=new_comment.id, user_id=user_id) g.db.add(notif) - if PUSHER_ID != '3435tdfsdudebussylmaoxxt43': + if PUSHER_ID != 'blahblahblah': if len(message) > 500: notifbody = message[:500] + '...' else: notifbody = message diff --git a/files/templates/comments.html b/files/templates/comments.html index d0a0c1721..b993f9473 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -544,7 +544,7 @@ - +
@@ -569,7 +569,7 @@ - Comment + Comment Cancel @@ -599,7 +599,7 @@