fds
This commit is contained in:
parent
c50cb5ca30
commit
c0d8490df3
6 changed files with 18 additions and 4 deletions
|
@ -9,7 +9,8 @@ def create_comment(text_html, autojanny=False):
|
||||||
|
|
||||||
new_comment = Comment(author_id=author_id,
|
new_comment = Comment(author_id=author_id,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
body_html=text_html)
|
body_html=text_html,
|
||||||
|
distinguish_level=6)
|
||||||
g.db.add(new_comment)
|
g.db.add(new_comment)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
return new_comment.id
|
return new_comment.id
|
||||||
|
|
|
@ -1003,6 +1003,7 @@ def shadowban(user_id, v):
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
level=1,
|
level=1,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
g.db.add(new_comment)
|
g.db.add(new_comment)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
@ -1184,6 +1185,7 @@ def ban_user(user_id, v):
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
level=1,
|
level=1,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
g.db.add(new_comment)
|
g.db.add(new_comment)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
|
@ -61,7 +61,8 @@ def request_api_keys(v):
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
level=1,
|
level=1,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
sentto=2
|
sentto=2,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
g.db.add(new_comment)
|
g.db.add(new_comment)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
|
@ -728,6 +728,7 @@ def thumbnail_thread(pid):
|
||||||
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
db.add(new_comment)
|
db.add(new_comment)
|
||||||
db.flush()
|
db.flush()
|
||||||
|
@ -751,7 +752,8 @@ def thumbnail_thread(pid):
|
||||||
|
|
||||||
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
body_html=body_html
|
body_html=body_html,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
|
|
||||||
db.add(new_comment)
|
db.add(new_comment)
|
||||||
|
@ -778,6 +780,7 @@ def thumbnail_thread(pid):
|
||||||
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
new_comment = Comment(author_id=NOTIFICATIONS_ID,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
db.add(new_comment)
|
db.add(new_comment)
|
||||||
db.flush()
|
db.flush()
|
||||||
|
|
|
@ -638,7 +638,7 @@
|
||||||
{% if v %}
|
{% 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 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>
|
<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>
|
||||||
|
|
||||||
|
|
|
@ -252,4 +252,11 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if v and v.id == AEVANN_ID %}
|
||||||
|
<style>
|
||||||
|
#frontpage .post-title a:visited {
|
||||||
|
color: var(--black) !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue