Implement #380: remove signatures feature.

This commit is contained in:
TLSM 2022-11-06 17:08:48 -05:00 committed by Ben Rog-Wilhelm
parent c85cd469a1
commit 010c56a35e
9 changed files with 32 additions and 94 deletions

View file

@ -375,9 +375,6 @@ class Comment(Base):
g.db.add(self)
g.db.commit()
if self.author.sig_html and (self.author_id == MOOSE_ID or (not self.ghost and not (v and v.sigs_disabled))):
body += f"<hr>{self.author.sig_html}"
return body
def plainbody(self, v):

View file

@ -377,9 +377,6 @@ class Submission(Base):
g.db.add(self)
g.db.commit()
if self.author.sig_html and (self.author_id == MOOSE_ID or (not self.ghost and not (v and v.sigs_disabled))):
body += f"<hr>{self.author.sig_html}"
return body
def plainbody(self, v):

View file

@ -95,10 +95,7 @@ class User(Base):
controversial = Column(Boolean, default=False, nullable=False)
bio = deferred(Column(String))
bio_html = Column(String)
sig = deferred(Column(String))
sig_html = Column(String)
fp = Column(String)
sigs_disabled = Column(Boolean)
fish = Column(Boolean)
progressivestack = Column(Integer)
deflector = Column(Integer)