fdsdfs
This commit is contained in:
parent
9c56b14908
commit
34d4b4748e
3 changed files with 3 additions and 3 deletions
|
@ -347,7 +347,7 @@ class Comment(Base):
|
|||
@lazy
|
||||
def collapse_for_user(self, v):
|
||||
|
||||
if self.over_18 and not (v and v.over_18) and not self.post.over_18: return True
|
||||
if self.over_18 and not (v and v.over_18) and not (self.post and self.post.over_18): return True
|
||||
|
||||
if not v: return False
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ no_images = ['b',
|
|||
'span',
|
||||
]
|
||||
|
||||
allowed_attributes = {'*': ['href', 'style', 'src', 'class', 'title', 'rel', 'data-bs-original-name', 'direction']}
|
||||
allowed_attributes = {'*': ['href', 'style', 'src', 'class', 'title', 'rel', 'data-bs-original-name', 'direction', 'behavior']}
|
||||
|
||||
allowed_protocols = ['http', 'https']
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ def searchcomments(v):
|
|||
except: page = 1
|
||||
|
||||
sort = request.values.get("sort", "new").lower()
|
||||
t = request.values.get('t', 'week').lower()
|
||||
t = "day"
|
||||
|
||||
criteria=searchparse(query)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue