forked from MarseyWorld/MarseyWorld
fdsfsd
parent
a01835ed73
commit
5e2d7f53f9
|
@ -206,8 +206,8 @@ class User(Base):
|
|||
@lazy
|
||||
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("/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"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Reference in New Issue