remotes/1693045480750635534/spooky-22
Aevann1 2022-01-22 18:22:31 +02:00
parent 311408eede
commit 71f3cf4a65
5 changed files with 7 additions and 17 deletions

View File

@ -368,6 +368,10 @@ class Comment(Base):
if not self.total_poll_voted(v): body += ' d-none'
body += f'"> - <a href="/votes?link=t3_{o.id}"><span id="poll-{o.id}">{o.upvotes}</span> votes</a></span></label></div>'
if self.author.sig_html and not self.ghost and (self.author_id == MOOSE_ID or not (v and v.sigs_disabled)):
body += "<hr>{self.author.sig_html}"
return body
def plainbody(self, v):

View File

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

View File

@ -252,11 +252,6 @@
<div id="comment-text-{{c.id}}" class="comment-text mb-0 {% if c.author.agendaposter %}agendaposter{% endif %}" >
{{c.realbody(v) | safe}}
{% if c.author.sig_html and not c.ghost and (c.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{c.author.sig_html | safe}}
{% endif %}
</div>
{% if c.parent_submission %}

View File

@ -546,13 +546,6 @@
{% endif %}
</div>
{% if p.author.sig_html and not p.ghost and (p.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{p.author.sig_html | safe}}
{% endif %}
</div>
{% if v and (v.id==p.author_id or v.admin_level > 2) and not v.is_suspended %}

View File

@ -515,11 +515,6 @@
{% if p.realbody(v) %}
<div class="d-none card rounded border pb-0 pt-3 my-2 {% if p.author.agendaposter %}agendaposter{% endif %}" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}}
{% if p.author.sig_html and not p.ghost and (p.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{p.author.sig_html | safe}}
{% endif %}
</div>
{% endif %}