remotes/1693045480750635534/spooky-22
Aevann1 2022-03-31 17:00:57 +02:00
parent 1042072ad8
commit b02b27ce4f
6 changed files with 18 additions and 4 deletions

View File

@ -9,7 +9,8 @@ def create_comment(text_html, autojanny=False):
new_comment = Comment(author_id=author_id,
parent_submission=None,
body_html=text_html)
body_html=text_html,
distinguish_level=6)
g.db.add(new_comment)
g.db.flush()
return new_comment.id

View File

@ -1003,6 +1003,7 @@ def shadowban(user_id, v):
parent_submission=None,
level=1,
body_html=body_html,
distinguish_level=6
)
g.db.add(new_comment)
g.db.flush()
@ -1184,6 +1185,7 @@ def ban_user(user_id, v):
parent_submission=None,
level=1,
body_html=body_html,
distinguish_level=6
)
g.db.add(new_comment)
g.db.flush()

View File

@ -61,7 +61,8 @@ def request_api_keys(v):
parent_submission=None,
level=1,
body_html=body_html,
sentto=2
sentto=2,
distinguish_level=6
)
g.db.add(new_comment)
g.db.flush()

View File

@ -728,6 +728,7 @@ def thumbnail_thread(pid):
new_comment = Comment(author_id=NOTIFICATIONS_ID,
parent_submission=None,
body_html=body_html,
distinguish_level=6
)
db.add(new_comment)
db.flush()
@ -751,7 +752,8 @@ def thumbnail_thread(pid):
new_comment = Comment(author_id=NOTIFICATIONS_ID,
parent_submission=None,
body_html=body_html
body_html=body_html,
distinguish_level=6
)
db.add(new_comment)
@ -778,6 +780,7 @@ def thumbnail_thread(pid):
new_comment = Comment(author_id=NOTIFICATIONS_ID,
parent_submission=None,
body_html=body_html,
distinguish_level=6
)
db.add(new_comment)
db.flush()

View File

@ -638,7 +638,7 @@
{% if v %}
<a role="button" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#reportCommentModal" onclick="report_commentModal('{{c.id}}','{{c.author_name}}')" class="list-group-item"><i class="fas fa-flag mr-2"></i>Report</a>
<a class="list-group-item" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/award_comment/{{c.id}}')"><i class="fas fa-gift mr-1" aria-hidden="true"></i>Give Award</a>
<a class="list-group-item" role="button" data-bs-toggle="modal" data-bs-target="#awardModal" onclick="awardModal('/award_comment/{{c.id}}')"><i class="fas fa-gift mr-2" aria-hidden="true"></i>Give Award</a>
<a id="save2-{{c.id}}" class="list-group-item {% if c.id in v.saved_comment_idlist() %}d-none{% endif %}" role="button" data-bs-dismiss="modal" onclick="post_toast2(this,'/save_comment/{{c.id}}','save2-{{c.id}}','unsave2-{{c.id}}')"><i class="fas fa-save mr-2"></i>Save</a>

View File

@ -252,4 +252,11 @@
</script>
{% endif %}
{% if v and v.id == AEVANN_ID %}
<style>
#frontpage .post-title a:visited {
color: var(--black) !important;
}
</style>
{% endif %}
{% endblock %}