This commit is contained in:
Aevann1 2022-01-30 15:40:11 +02:00
parent 40a08186bd
commit 88d635e03d
6 changed files with 11 additions and 11 deletions

View file

@ -208,7 +208,7 @@ class User(Base):
def ban_reason_link(self):
if self.ban_reason:
if self.ban_reason.startswith("/post/"): return self.ban_reason.split(None, 1)[0]
if self.ban_reason.startswith("/comment/"): return self.ban_reason.split(None, 1)[0] + "?context=9#context"
if self.ban_reason.startswith("/comment/"): return self.ban_reason.split(None, 1)[0] + "?context=8#context"
@property
@lazy