From 6380b2ef9aecbe1a5cec54f3a02bbeb25f5661e0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 8 Sep 2021 09:08:10 +0200 Subject: [PATCH] fd --- files/routes/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 829eb4e18..0028dd199 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -607,8 +607,8 @@ def agendaposter(user_id, v): g.db.flush() - if user.agendaposter: send_notification(NOTIFICATIONS_ACCOUNT, user, f"You have been marked by an admin (@{v.username}) as an agendaposter ({note})") - else: send_notification(NOTIFICATIONS_ACCOUNT, user, f"You have been unmarked by an admin (@{v.username}) as an agendaposter") + if user.agendaposter: send_notification(NOTIFICATIONS_ACCOUNT, user, f"You have been marked by an admin as an agendaposter ({note}).") + else: send_notification(NOTIFICATIONS_ACCOUNT, user, f"You have been unmarked by an admin as an agendaposter.") return (redirect(user.url), user)