diff --git a/files/classes/comment.py b/files/classes/comment.py index 5b2574a93..d403b758a 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -326,6 +326,12 @@ class Comment(Base): if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻' return self.author.user_name + @property + @lazy + def author_name_punish_modal(self): + if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻' + return self.author.username + @lazy def award_count(self, kind, v): if v and v.poor: diff --git a/files/classes/post.py b/files/classes/post.py index fc4ada669..9d981f477 100644 --- a/files/classes/post.py +++ b/files/classes/post.py @@ -160,6 +160,12 @@ class Post(Base): if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻' return self.author.user_name + @property + @lazy + def author_name_punish_modal(self): + if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻' + return self.author.username + @property @lazy def is_youtube(self): diff --git a/files/templates/comments.html b/files/templates/comments.html index 6897553c1..9b52e57ff 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -482,13 +482,13 @@ {% endif %} {% if v.admin_level >= PERMS['USER_BAN'] and v.id != c.author_id %} - + {% endif %} {% if v.admin_level >= PERMS['USER_CHUD'] and v.id != c.author_id %} - + {% endif %} @@ -707,12 +707,12 @@ {% endif %} {% if v.id != c.author_id and v.admin_level >= PERMS['USER_BAN'] %} - + {% endif %} {% if v.id != c.author_id and v.admin_level >= PERMS['USER_CHUD'] %} - + {% endif %} diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index db92c3cf0..6d150ecee 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -92,12 +92,12 @@ {% endif %} {% if v.admin_level >= PERMS['USER_BAN'] and v.id != p.author_id %} - + {% endif %} {% if v.admin_level >= PERMS['USER_CHUD'] and v.id != p.author_id %} - + {% endif %} diff --git a/files/templates/post_admin_actions_mobile.html b/files/templates/post_admin_actions_mobile.html index 678be7012..fcf2b3783 100644 --- a/files/templates/post_admin_actions_mobile.html +++ b/files/templates/post_admin_actions_mobile.html @@ -46,12 +46,12 @@ {% endif %} {% if v.id != p.author_id and v.admin_level >= PERMS['USER_BAN'] %} - + {% endif %} {% if v.id != p.author_id and v.admin_level >= PERMS['USER_CHUD'] %} - + {% endif %}