This commit is contained in:
parent
6d61e038e7
commit
08fb1d3510
|
@ -311,7 +311,10 @@ async def create_reaction(_, info, reaction):
|
|||
follow(None, info, "shout", shout_id=shout_id)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
shout = session.query(Shout).filter(Shout.id == shout_id).first()
|
||||
if not shout:
|
||||
return {"error": "Shout not found"}
|
||||
rdict['shout'] = shout.dict()
|
||||
rdict["created_by"] = author_dict
|
||||
return {"reaction": rdict}
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user