fddffd
This commit is contained in:
parent
708a16ea75
commit
de57a2effa
5 changed files with 16 additions and 22 deletions
|
@ -327,6 +327,14 @@ class Submission(Base):
|
|||
|
||||
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.shadowbanned and self.author and self.author.shadowbanned and 86400 > time.time() - self.created_utc > 600:
|
||||
rand = random.randint(5,20)
|
||||
if self.upvotes < rand:
|
||||
self.upvotes = rand
|
||||
g.db.add(self)
|
||||
g.db.commit()
|
||||
|
||||
return body
|
||||
|
||||
def plainbody(self, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue