sdffsd
This commit is contained in:
parent
b67a8c4f86
commit
6555839c7c
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue