From 796b71288ee27de5bf6b8c6eae468823d29fac7d Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 29 Feb 2024 22:59:15 +0200 Subject: [PATCH] retvrn to /offsite (doesnt clip on my phone) --- files/classes/user.py | 4 ++-- files/routes/notifications.py | 2 +- files/templates/notifications.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index de91d6afc..859fb76be 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -909,7 +909,7 @@ class User(Base): elif self.modaction_notifications_count > 0: return 'modactions' elif self.offsite_notifications_count > 0: - return 'site_mentions' + return 'offsite' return '' @property @@ -921,7 +921,7 @@ class User(Base): 'modmail': '#f15387', 'posts': '#0000ff', 'modactions': '#1ad80d', - 'site_mentions': '#805ad5', + 'offsite': '#805ad5', } return colors[self.notifications_do] if self.notifications_do \ else colors[''] diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 5073cb41a..674d49eac 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -268,7 +268,7 @@ def notifications_modactions(v): -@app.get("/notifications/site_mentions") +@app.get("/notifications/offsite") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required diff --git a/files/templates/notifications.html b/files/templates/notifications.html index 9c571adab..9d0421124 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -40,8 +40,8 @@ {% endif %} {% if v.offsite_mentions != None %} {% endif %}