This commit is contained in:
parent
8116160b4d
commit
f32b6a6a27
|
@ -162,7 +162,7 @@ def query_with_stat(info):
|
||||||
.group_by(Reaction.shout)
|
.group_by(Reaction.shout)
|
||||||
.subquery()
|
.subquery()
|
||||||
)
|
)
|
||||||
author_id = info.context.get("author", {}).get("id")
|
author_id = info.context.get("author", {}).get("id") if info.context 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