remotes/1693045480750635534/spooky-22
Aevann1 2021-11-03 16:03:26 +02:00
parent 047c222e97
commit 8e710ded7c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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']

View File

@ -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)