forked from rDrama/rDrama
same as last commit
parent
d9253ddd67
commit
0ba14cb771
|
@ -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
|
||||
|
|
|
@ -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/",
|
||||
|
|
Loading…
Reference in New Issue