fdssfd
This commit is contained in:
parent
457f9fa6cf
commit
be63f7384d
5 changed files with 7 additions and 17 deletions
|
@ -368,6 +368,10 @@ class Comment(Base):
|
||||||
if not self.total_poll_voted(v): body += ' d-none'
|
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>'
|
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
|
return body
|
||||||
|
|
||||||
def plainbody(self, v):
|
def plainbody(self, v):
|
||||||
|
|
|
@ -382,6 +382,9 @@ class Submission(Base):
|
||||||
g.db.add(self.author)
|
g.db.add(self.author)
|
||||||
g.db.commit()
|
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
|
return body
|
||||||
|
|
||||||
def plainbody(self, v):
|
def plainbody(self, v):
|
||||||
|
|
|
@ -252,11 +252,6 @@
|
||||||
|
|
||||||
<div id="comment-text-{{c.id}}" class="comment-text mb-0 {% if c.author.agendaposter %}agendaposter{% endif %}" >
|
<div id="comment-text-{{c.id}}" class="comment-text mb-0 {% if c.author.agendaposter %}agendaposter{% endif %}" >
|
||||||
{{c.realbody(v) | safe}}
|
{{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>
|
</div>
|
||||||
{% if c.parent_submission %}
|
{% if c.parent_submission %}
|
||||||
|
|
||||||
|
|
|
@ -546,13 +546,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
{% if v and (v.id==p.author_id or v.admin_level > 2) and not v.is_suspended %}
|
{% if v and (v.id==p.author_id or v.admin_level > 2) and not v.is_suspended %}
|
||||||
|
|
|
@ -515,11 +515,6 @@
|
||||||
{% if p.realbody(v) %}
|
{% 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}}">
|
<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}}
|
{{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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue