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
|
||||
g.db.add(post)
|
||||
|
||||
if sub_to == 'chudrama':
|
||||
post.bannedfor = None
|
||||
post.chuddedfor = None
|
||||
|
||||
if v.id != post.author_id:
|
||||
sub_from_str = 'main feed' if sub_from is None else \
|
||||
f'<a href="/h/{sub_from}">/h/{sub_from}</a>'
|
||||
|
|
|
@ -124,11 +124,11 @@
|
|||
{% 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>
|
||||
{% 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>
|
||||
{% 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>
|
||||
{% 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>
|
||||
{% 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>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue