shoutscache, format

This commit is contained in:
2022-09-07 19:19:06 +03:00
parent 742042398c
commit 365c2f25e7
9 changed files with 129 additions and 33 deletions

View File

@@ -58,10 +58,10 @@ def reactions_unfollow(user, slug):
async def create_reaction(_, info, inp):
user = info.context["request"].user
# TODO: filter allowed reaction kinds
# TODO: filter allowed for post reaction kinds
reaction = Reaction.create(**inp)
ReactedStorage.increment(reaction.shout, reaction.replyTo)
ReactedStorage.react(reaction)
try:
reactions_follow(user, inp["shout"], True)
except Exception as e: