craete-reaction-fix

This commit is contained in:
Untone 2024-01-23 00:36:52 +03:00
parent 8eb36f0cc3
commit 3e6354afed

View File

@ -252,7 +252,7 @@ async def create_reaction(_, info, reaction):
# Reactions auto-following # Reactions auto-following
reactions_follow(author.id, reaction["shout"], True) reactions_follow(author.id, reaction["shout"], True)
rdict = r.dict()
rdict["shout"] = shout.dict() rdict["shout"] = shout.dict()
rdict["created_by"] = author.dict() rdict["created_by"] = author.dict()
rdict["stat"] = {"commented": 0, "reacted": 0, "rating": 0} rdict["stat"] = {"commented": 0, "reacted": 0, "rating": 0}