This commit is contained in:
parent
f32b6a6a27
commit
af2d8caebe
|
@ -162,7 +162,8 @@ def query_with_stat(info):
|
||||||
.group_by(Reaction.shout)
|
.group_by(Reaction.shout)
|
||||||
.subquery()
|
.subquery()
|
||||||
)
|
)
|
||||||
author_id = info.context.get("author", {}).get("id") if info.context else None
|
author_dict = info.context.get("author") if info.context else None
|
||||||
|
author_id = author_dict.get("id") if author_dict else None
|
||||||
user_reaction_subquery = None
|
user_reaction_subquery = None
|
||||||
if author_id:
|
if author_id:
|
||||||
user_reaction_subquery = (
|
user_reaction_subquery = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user