From 071ef274c6dee03721b4d3ba85e0f7352fb75a0f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 24 Nov 2021 18:20:57 +0200 Subject: [PATCH] sdffsd --- files/classes/user.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index be0988a66..57cbb6c35 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -205,8 +205,9 @@ class User(Base): @property @lazy def ban_reason_link(self): - if self.ban_reason and (self.ban_reason.startswith("/post/") or self.ban_reason.startswith("/comment/")): - return self.ban_reason.split(" ", 1)[0] + if self.ban_reason: + if self.ban_reason.startswith("/post/"): return self.ban_reason.split(" ", 1)[0] + if self.ban_reason.startswith("/comment/")): return self.ban_reason.split(" ", 1)[0] + "?context=9#context" @property @lazy