events-trigger-query-fix
All checks were successful
Deploy on push / deploy (push) Successful in 25s
All checks were successful
Deploy on push / deploy (push) Successful in 25s
This commit is contained in:
@@ -81,8 +81,7 @@ def create_shout(_, info, inp):
|
||||
# NOTE: requesting new shout back
|
||||
shout = session.query(Shout).where(Shout.slug == slug).first()
|
||||
if shout:
|
||||
shout_dict = shout.dict()
|
||||
sa = ShoutAuthor(shout=shout.id, author=author.id)
|
||||
sa = ShoutAuthor(shout=shout.id, author=author.id, auto=True)
|
||||
session.add(sa)
|
||||
|
||||
topics = (
|
||||
@@ -94,6 +93,8 @@ def create_shout(_, info, inp):
|
||||
t = ShoutTopic(topic=topic.id, shout=shout.id)
|
||||
session.add(t)
|
||||
|
||||
session.commit()
|
||||
|
||||
reactions_follow(author.id, shout.id, True)
|
||||
|
||||
# notifier
|
||||
|
Reference in New Issue
Block a user