forked from rDrama/rDrama
fdsdfs
parent
7b7250e148
commit
5204cfaab2
|
@ -594,7 +594,8 @@ def award_post(pid, v):
|
||||||
g.db.add(new_badge)
|
g.db.add(new_badge)
|
||||||
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
||||||
|
|
||||||
post.author.received_award_count += 1
|
if post.author.received_award_count: post.author.received_award_count += 1
|
||||||
|
else: post.author.received_award_count = 1
|
||||||
g.db.add(post.author)
|
g.db.add(post.author)
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
@ -749,7 +750,8 @@ def award_comment(cid, v):
|
||||||
g.db.add(new_badge)
|
g.db.add(new_badge)
|
||||||
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
for block in g.db.query(UserBlock).filter_by(target_id=author.id).all(): g.db.delete(block)
|
||||||
|
|
||||||
c.author.received_award_count += 1
|
if c.author.received_award_count: c.author.received_award_count += 1
|
||||||
|
else: c.author.received_award_count = 1
|
||||||
g.db.add(c.author)
|
g.db.add(c.author)
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
|
@ -199,7 +199,7 @@
|
||||||
{% if c.over_18 %}<span class="badge badge-danger text-small-extra mr-1">+18</span>{% endif %}
|
{% if c.over_18 %}<span class="badge badge-danger text-small-extra mr-1">+18</span>{% endif %}
|
||||||
{% if v and v.admin_level > 1 and c.author.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Shadowbanned by @{{c.author.shadowbanned}}"></i>{% endif %}
|
{% if v and v.admin_level > 1 and c.author.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Shadowbanned by @{{c.author.shadowbanned}}"></i>{% endif %}
|
||||||
{% if c.is_pinned and c.is_pinned.startswith('t:') %}
|
{% if c.is_pinned and c.is_pinned.startswith('t:') %}
|
||||||
<i id='pinned-{{c.id}}' onmouseover="pinned_timestamp('pinned-{{c.id}}')" class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-timestamp={{c.is_pinned[2:]}}*1000></i>
|
<i id='pinned-{{c.id}}' onmouseover="pinned_timestamp('pinned-{{c.id}}')" class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-timestamp={{c.is_pinned[2:]}}></i>
|
||||||
{% elif c.is_pinned %}
|
{% elif c.is_pinned %}
|
||||||
<i id='pinned-{{c.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Pinned by @{{c.is_pinned}}"></i>
|
<i id='pinned-{{c.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Pinned by @{{c.is_pinned}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -765,7 +765,7 @@
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
<script src="/assets/js/popover.js?v=12"></script>
|
<script src="/assets/js/popover.js?v=12"></script>
|
||||||
<script src="/assets/js/comments+submission_listing.js?v=3"></script>
|
<script src="/assets/js/comments+submission_listing.js?v=9"></script>
|
||||||
<script src="/assets/js/comments.js?v=13"></script>
|
<script src="/assets/js/comments.js?v=13"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -353,7 +353,7 @@
|
||||||
{% if v and v.admin_level > 1 and p.author.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Shadowbanned by @{{p.author.shadowbanned}}"></i>{% endif %}
|
{% if v and v.admin_level > 1 and p.author.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Shadowbanned by @{{p.author.shadowbanned}}"></i>{% endif %}
|
||||||
|
|
||||||
{% if p.stickied and p.stickied.startswith('t:') %}
|
{% if p.stickied and p.stickied.startswith('t:') %}
|
||||||
<i id='pinned-{{p.id}}' onmouseover="pinned_timestamp('pinned-{{p.id}}')" class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-timestamp={{p.stickied[2:]}}*1000></i>
|
<i id='pinned-{{p.id}}' onmouseover="pinned_timestamp('pinned-{{p.id}}')" class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-timestamp={{p.stickied[2:]}}></i>
|
||||||
{% elif p.stickied %}
|
{% elif p.stickied %}
|
||||||
<i id='pinned-{{p.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Pinned by @{{p.stickied}}"></i>
|
<i id='pinned-{{p.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Pinned by @{{p.stickied}}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -659,5 +659,5 @@
|
||||||
|
|
||||||
<script src="/assets/js/clipboard.js?v=3"></script>
|
<script src="/assets/js/clipboard.js?v=3"></script>
|
||||||
<script src="/assets/js/popover.js?v=12"></script>
|
<script src="/assets/js/popover.js?v=12"></script>
|
||||||
<script src="/assets/js/comments+submission_listing.js?v=3"></script>
|
<script src="/assets/js/comments+submission_listing.js?v=9"></script>
|
||||||
<script src="/assets/js/submission_listing.js?v=10"></script>
|
<script src="/assets/js/submission_listing.js?v=10"></script>
|
Loading…
Reference in New Issue