master
Aevann1 2021-09-12 03:57:48 +02:00
parent 2c6941e84f
commit 043658b8e0
9 changed files with 11 additions and 8 deletions

View File

@ -41,6 +41,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
comment = get_comment(cid, v=v)
if comment.post and comment.post.club and not (v and v.coins > 150): abort(403)
if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)) and not (v and v.admin_level == 6) : abort(403)
if not pid:
@ -137,6 +139,7 @@ def api_comment(v):
parent_id = parent_fullname.split("_")[1]
if parent_fullname.startswith("t2"):
parent_post = get_post(parent_id, v=v)
if parent_post.club and not (v and v.coins > 150): abort(403)
parent = parent_post
parent_comment_id = None
level = 1

View File

@ -1251,7 +1251,7 @@
{% include "expanded_image_modal.html" %}
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
<!-- ClipboardJS -->

View File

@ -144,6 +144,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th
{% include "expanded_image_modal.html" %}
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
{% endblock %}

View File

@ -130,7 +130,7 @@
{% include "bootstrap.html" %}
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
</body>

View File

@ -254,7 +254,7 @@
</div>
</div>
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
{% block onload %}{% endblock %}

View File

@ -226,7 +226,7 @@
});
</script>
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
{% block scripts %}
{% endblock %}

View File

@ -233,7 +233,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
</body>

View File

@ -144,7 +144,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
</body>

View File

@ -489,7 +489,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general21.js"></script>
<script src="/assets/js/general22.js"></script>
<!-- ClipboardJS -->