forked from rDrama/rDrama
sdffsd
parent
f33b3a33b9
commit
071ef274c6
|
@ -205,8 +205,9 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def ban_reason_link(self):
|
def ban_reason_link(self):
|
||||||
if self.ban_reason and (self.ban_reason.startswith("/post/") or self.ban_reason.startswith("/comment/")):
|
if self.ban_reason:
|
||||||
return self.ban_reason.split(" ", 1)[0]
|
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
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
Loading…
Reference in New Issue