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 Comment(Base):
url_noquery = url.split('?')[0]
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
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):