forked from MarseyWorld/MarseyWorld
fdsfds
parent
301be67a11
commit
afab230985
|
@ -327,7 +327,7 @@ class Comment(Base):
|
||||||
url_noquery = url.split('?')[0]
|
url_noquery = url.split('?')[0]
|
||||||
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
|
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
|
||||||
|
|
||||||
if v and v.shadowbanned and self.author and self.author.shadowbanned and 86400 > time.time() - self.created_utc > 600:
|
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600:
|
||||||
rand = random.randint(5,20)
|
rand = random.randint(5,20)
|
||||||
if self.upvotes < rand:
|
if self.upvotes < rand:
|
||||||
self.upvotes = rand
|
self.upvotes = rand
|
||||||
|
|
|
@ -328,7 +328,7 @@ class Submission(Base):
|
||||||
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
|
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
|
||||||
if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
||||||
|
|
||||||
if v and v.shadowbanned and self.author and self.author.shadowbanned and 86400 > time.time() - self.created_utc > 600:
|
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600:
|
||||||
rand = random.randint(5,20)
|
rand = random.randint(5,20)
|
||||||
if self.upvotes < rand:
|
if self.upvotes < rand:
|
||||||
self.upvotes = rand
|
self.upvotes = rand
|
||||||
|
|
Loading…
Reference in New Issue