From 6e2f2f614a8697541a064be00a9d1e7b8b57b74e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 18 Jan 2022 00:34:30 +0200 Subject: [PATCH] vcxvxc --- files/classes/comment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 60aad3240..3948a98cd 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -11,6 +11,7 @@ from files.helpers.const import AUTOPOLLER_ID, AUTOBETTER_ID, censor_slurs from files.helpers.lazy import lazy from .flags import CommentFlag from random import randint +from .award import AwardRelationship site = environ.get("DOMAIN").strip() if site == 'pcmemes.net': cc = "SPLASH MOUNTAIN" @@ -228,7 +229,7 @@ class Comment(Base): @property @lazy def author_name(self): - if self.post and (self.award_count('ghosts') or self.post.award_count('ghosts')): return '👻' + if self.award_count('ghosts') or self.parent_submission and g.db.query(AwardRelationship.id).filter_by(submission_id=self.parent_submission).first(): return '👻' else: return self.author.username @property