cxzxzc
parent
6e2f2f614a
commit
b2b13e0833
|
@ -11,7 +11,6 @@ from files.helpers.const import AUTOPOLLER_ID, AUTOBETTER_ID, censor_slurs
|
||||||
from files.helpers.lazy import lazy
|
from files.helpers.lazy import lazy
|
||||||
from .flags import CommentFlag
|
from .flags import CommentFlag
|
||||||
from random import randint
|
from random import randint
|
||||||
from .award import AwardRelationship
|
|
||||||
|
|
||||||
site = environ.get("DOMAIN").strip()
|
site = environ.get("DOMAIN").strip()
|
||||||
if site == 'pcmemes.net': cc = "SPLASH MOUNTAIN"
|
if site == 'pcmemes.net': cc = "SPLASH MOUNTAIN"
|
||||||
|
@ -229,7 +228,7 @@ class Comment(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
def author_name(self):
|
||||||
if self.award_count('ghosts') or self.parent_submission and g.db.query(AwardRelationship.id).filter_by(submission_id=self.parent_submission).first(): return '👻'
|
if self.post and (self.award_count('ghosts') or self.post.award_count('ghosts')): return '👻'
|
||||||
else: return self.author.username
|
else: return self.author.username
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue