dont generate a mod log unless necessary

master
Aevann 2024-04-01 23:24:35 +02:00
parent 678477b819
commit ead44ed182
1 changed files with 3 additions and 3 deletions

View File

@ -446,12 +446,12 @@
{% if c.parent_post %}
{% set url = "" %}
{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
{% set url = "pin_comment_admin" %}
{% elif v.id == c.post.author_id %}
{% if v.id == c.post.author_id %}
{% set url = "pin_comment_op" %}
{% elif v.mods_hole(c.post.hole) %}
{% set url = "pin_comment_mod" %}
{% elif v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
{% set url = "pin_comment_admin" %}
{% endif %}
{% if url != "" %}