master
Aevann1 2021-11-05 20:29:05 +02:00
parent b22b261380
commit 81c2555caf
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,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 self.author.sig_html and not (v and v.sigs_disabled): return body + '<hr>' + self.author.sig_html if self.author.sig_html and (self.author_id == 1904 or not (v and v.sigs_disabled)): return body + '<hr>' + self.author.sig_html
return body return body
def plainbody(self, v): def plainbody(self, v):

View File

@ -316,7 +316,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 self.author.sig_html and not (v and v.sigs_disabled): return body + '<hr>' + self.author.sig_html if self.author.sig_html and (self.author_id == 1904 or not (v and v.sigs_disabled)): return body + '<hr>' + self.author.sig_html
return body return body
def plainbody(self, v): def plainbody(self, v):