hotfixes
This commit is contained in:
parent
228cdf21e9
commit
2d090a776e
|
@ -71,7 +71,7 @@ async def load_shout(_, info, slug):
|
|||
|
||||
[shout, rating, commented] = session.execute(q).unique().one()
|
||||
for a in shout.authors:
|
||||
a.caption = await ShoutAuthorStorage.get_author_caption(a.slug)
|
||||
a.caption = await ShoutAuthorStorage.get_author_caption(shout.slug, a.slug)
|
||||
viewed = await ViewedStorage.get_shout(shout.slug)
|
||||
shout.stat = {
|
||||
"rating": rating,
|
||||
|
|
|
@ -56,7 +56,7 @@ async def followed_reactions(slug):
|
|||
return session.query(
|
||||
Reaction.shout
|
||||
).where(
|
||||
Reaction.author == slug
|
||||
Reaction.createdBy == slug
|
||||
).filter(
|
||||
Reaction.createdAt > user.lastSeen
|
||||
).all()
|
||||
|
|
Loading…
Reference in New Issue
Block a user