forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-18 00:34:30 +02:00
parent 74923c7b06
commit 6e2f2f614a
1 changed files with 2 additions and 1 deletions

View File

@ -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