forked from MarseyWorld/MarseyWorld
hide bannedfor and chuddedfor icons in chudrama html-side
parent
06aacf10ec
commit
516ef19603
|
@ -190,10 +190,6 @@ def move_post(post, v, reason):
|
||||||
post.hole_pinned = None
|
post.hole_pinned = None
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
if sub_to == 'chudrama':
|
|
||||||
post.bannedfor = None
|
|
||||||
post.chuddedfor = None
|
|
||||||
|
|
||||||
if v.id != post.author_id:
|
if v.id != post.author_id:
|
||||||
sub_from_str = 'main feed' if sub_from is None else \
|
sub_from_str = 'main feed' if sub_from is None else \
|
||||||
f'<a href="/h/{sub_from}">/h/{sub_from}</a>'
|
f'<a href="/h/{sub_from}">/h/{sub_from}</a>'
|
||||||
|
|
|
@ -124,11 +124,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if c.bannedfor %}
|
{% if c.bannedfor and not (c.parent_post and c.post.sub == 'chudrama') %}
|
||||||
<i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this comment {{c.bannedfor}}"></i>
|
<i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this comment {{c.bannedfor}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if c.chuddedfor %}
|
{% if c.chuddedfor and not (c.parent_post and c.post.sub == 'chudrama') %}
|
||||||
<i class="fas fa-face-sleeping text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was chudded for this comment {{c.chuddedfor}}"></i>
|
<i class="fas fa-face-sleeping text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was chudded for this comment {{c.chuddedfor}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
<a><i class="fas fa-campfire text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User has been exiled from /h/{{p.sub}} by @{{p.author.exiler_username(p.sub)}}"></i></a>
|
<a><i class="fas fa-campfire text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User has been exiled from /h/{{p.sub}} by @{{p.author.exiler_username(p.sub)}}"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.bannedfor %}
|
{% if p.bannedfor and not (c.parent_post and c.post.sub == 'chudrama') %}
|
||||||
<i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this post {{p.bannedfor}}"></i>
|
<i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this post {{p.bannedfor}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.chuddedfor %}
|
{% if p.chuddedfor and not (c.parent_post and c.post.sub == 'chudrama') %}
|
||||||
<i class="fas fa-face-sleeping text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was chudded for this post {{p.chuddedfor}}"></i>
|
<i class="fas fa-face-sleeping text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was chudded for this post {{p.chuddedfor}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue