forked from rDrama/rDrama
1
0
Fork 0

fix old posts and comments

master
Aevann 2024-02-25 01:06:31 +02:00
parent c7751d1bba
commit 0eae6efc6d
2 changed files with 4 additions and 2 deletions

View File

@ -434,7 +434,8 @@ class Comment(Base):
body = normalize_urls_runtime(body, v)
body = bleach_body_html(body, runtime=True) #to stop slur filters and poll options being used as a vector for html/js injection
if self.created_utc > 1706137534:
body = bleach_body_html(body, runtime=True) #to stop slur filters and poll options being used as a vector for html/js injection
return body

View File

@ -341,7 +341,8 @@ class Post(Base):
body = normalize_urls_runtime(body, v)
body = bleach_body_html(body, runtime=True) #to stop slur filters and poll options being used as a vector for html/js injection
if self.created_utc > 1706137534:
body = bleach_body_html(body, runtime=True) #to stop slur filters and poll options being used as a vector for html/js injection
return body