forked from MarseyWorld/MarseyWorld
bfg
parent
e0d9ef6094
commit
3e44777483
|
@ -341,9 +341,10 @@ class Submission(Base):
|
||||||
url = self.url
|
url = self.url
|
||||||
if v.teddit: url = self.url.replace("old.reddit.com", "teddit.net")
|
if v.teddit: url = self.url.replace("old.reddit.com", "teddit.net")
|
||||||
elif not v.oldreddit: url = self.url.replace("old.reddit.com", "reddit.com")
|
elif not v.oldreddit: url = self.url.replace("old.reddit.com", "reddit.com")
|
||||||
if v.controversial and '/comments/' in url and "sort=" not in url:
|
if '/comments/' in url and "sort=" not in url:
|
||||||
if "?" in url: url += "&sort=controversial"
|
if "?" in url: url += "&context=99"
|
||||||
else: url += "?sort=controversial"
|
else: url += "?context=99"
|
||||||
|
if v.controversial: url += "&sort=controversial"
|
||||||
return url
|
return url
|
||||||
elif self.url:
|
elif self.url:
|
||||||
if v and v.nitter: return self.url.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
if v and v.nitter: return self.url.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
||||||
|
|
Loading…
Reference in New Issue