forked from rDrama/rDrama
1
0
Fork 0

same as last commit

master
Aevann1 2022-10-11 16:44:43 +02:00
parent d9253ddd67
commit 0ba14cb771
2 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ class Comment(Base):
body = normalize_urls_runtime(body, v)
if v and v.controversial:
if not v or v.controversial:
captured = []
for i in controversial_regex.finditer(body):
if i.group(1) in captured: continue

View File

@ -310,7 +310,7 @@ class Submission(Base):
if url.startswith("https://old.reddit.com/r/") and '/comments/' in url and "sort=" not in url:
if "?" in url: url += "&context=9"
else: url += "?context=8"
if v and v.controversial: url += "&sort=controversial"
if not v or v.controversial: url += "&sort=controversial"
elif url.startswith("https://watchpeopledie.co/videos/"):
# Semi-temporary fix for self-hosted unproxied video serving
url = url.replace("https://watchpeopledie.co/videos/",