This commit is contained in:
Aevann1 2022-01-14 01:29:15 +02:00
parent 6fbe3017d3
commit fbe6c3dd26
20 changed files with 49 additions and 33 deletions

View file

@ -342,8 +342,8 @@ class Submission(Base):
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 '/comments/' in url and "sort=" not in url:
if "?" in url: url += "&context=99"
else: url += "?context=99"
if "?" in url: url += "&context=9"
else: url += "?context=9"
if v.controversial: url += "&sort=controversial"
return url
elif self.url: