diff --git a/files/templates/comments.html b/files/templates/comments.html index 7f1452ba8..da6b50202 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -11,7 +11,7 @@ {% include "popover.html" %} {% endif %} -{% set disable_votes = (request.path.startswith('/@') and not wall) and v and v.admin_level < PERMS['ENABLE_VOTE_BUTTONS_ON_USER_PAGE'] %} +{% set disable_votes = (request.path.startswith('/@') and not wall and u != v) and v and v.admin_level < PERMS['ENABLE_VOTE_BUTTONS_ON_USER_PAGE'] %} {% macro single_comment(c, level=1, collapse=False) %} {% if can_see(v, c) %} diff --git a/files/templates/post_listing.html b/files/templates/post_listing.html index f1eb675e5..9de2ddb1e 100644 --- a/files/templates/post_listing.html +++ b/files/templates/post_listing.html @@ -10,7 +10,7 @@ {% include "popover.html" %} -{% set disable_votes = request.path.startswith('/@') and v and v.admin_level < PERMS['ENABLE_VOTE_BUTTONS_ON_USER_PAGE'] %} +{% set disable_votes = request.path.startswith('/@' and u != v) and v and v.admin_level < PERMS['ENABLE_VOTE_BUTTONS_ON_USER_PAGE'] %} {% set post_permalinks = [] %} {% for p in listing if can_see(v, p) %}