forked from rDrama/rDrama
1
0
Fork 0
Aevann1 2022-08-11 10:29:56 +02:00
parent e8bfe7348f
commit ce9c4a1a41
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ class Comment(Base):
if 'sort' not in p: p['sort'] = ['controversial']
url_noquery = url.split('?')[0]
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
body = body.replace(f'"{url}"', f'"{url_noquery}?{urlencode(p, True)}"')
body = body.replace(f'>{url}<', f'>{url_noquery}?{urlencode(p, True)}<')
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 60:
ti = max(int((time.time() - self.created_utc)/60), 1)