fdsfds
This commit is contained in:
parent
f1f44ee3dd
commit
4e90a17314
14 changed files with 84 additions and 184 deletions
|
@ -227,8 +227,7 @@ class User(Base):
|
|||
@cache.memoize(timeout=86400)
|
||||
def userpagelisting(self, v=None, page=1, sort="new", t="all"):
|
||||
|
||||
if self.shadowbanned and not (v and (v.admin_level > 1 or v.id == self.id)):
|
||||
return []
|
||||
if self.shadowbanned and not (v and (v.admin_level > 1 or v.id == self.id)): return []
|
||||
|
||||
posts = g.db.query(Submission.id).filter_by(author_id=self.id, is_pinned=False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue