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