sigs toggle

This commit is contained in:
Aevann1 2021-11-04 19:24:43 +02:00
parent 06e721110d
commit 08620146da
5 changed files with 31 additions and 4 deletions

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 v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
if self.author.sig_html: return body + '<hr>' + self.author.sig_html
if self.author.sig_html and not (v and v.sigs_disabled): return body + '<hr>' + self.author.sig_html
return body
def plainbody(self, v):