master
Aevann1 2021-11-24 18:21:22 +02:00
parent 071ef274c6
commit a01835ed73
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class User(Base):
def ban_reason_link(self):
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"
if self.ban_reason.startswith("/comment/"): return self.ban_reason.split(" ", 1)[0] + "?context=9#context"
@property
@lazy