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)
|
follow(None, info, "shout", shout_id=shout_id)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
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
|
rdict["created_by"] = author_dict
|
||||||
return {"reaction": rdict}
|
return {"reaction": rdict}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user