diff --git a/files/classes/comment.py b/files/classes/comment.py index 40a6dd13c..d520e4d82 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -345,7 +345,7 @@ class Comment(Base): if v.teddit: body = body.replace("old.reddit.com", "teddit.net") elif not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com") - if v.nitter and not '/i/spaces/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") + if v.nitter and not '/i/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") if v and v.controversial: for i in re.finditer('(/comments/.*?)"', body): @@ -407,7 +407,7 @@ class Comment(Base): if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com") - if v and v.nitter and not '/i/spaces/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") + if v and v.nitter and not '/i/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") if v and v.controversial: for i in re.finditer('(/comments/.*?)"', body): diff --git a/files/classes/submission.py b/files/classes/submission.py index 84d1376cc..639817469 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -353,7 +353,7 @@ class Submission(Base): if v.controversial: url += "&sort=controversial" return url elif self.url: - if v and v.nitter and not '/i/spaces/' in self.url: return self.url.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") + if v and v.nitter and not '/i/' in self.url: return self.url.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") if self.url.startswith('/'): return SITE_FULL + self.url return self.url else: return "" @@ -369,7 +369,7 @@ class Submission(Base): if v.teddit: body = body.replace("old.reddit.com", "teddit.net") elif not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com") - if v.nitter and not '/i/spaces/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") + if v.nitter and not '/i/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 20: ti = max(int((time.time() - self.created_utc)/60), 1) @@ -436,7 +436,7 @@ class Submission(Base): if v.teddit: body = body.replace("old.reddit.com", "teddit.net") elif not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com") - if v.nitter and not '/i/spaces/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") + if v.nitter and not '/i/' in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") return body diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 0276e25c4..d45d16d63 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -487,13 +487,13 @@
{{u.username}} will receive 0 coins
- +
{{u.username}} will receive 0 marseybux
- +
{% if v.admin_level > 1 %} @@ -567,7 +567,7 @@ Verify Unverify {% endif %} - +