This commit is contained in:
tonyrewin 2022-11-26 04:15:09 +03:00
parent 228cdf21e9
commit 2d090a776e
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ async def load_shout(_, info, slug):
[shout, rating, commented] = session.execute(q).unique().one() [shout, rating, commented] = session.execute(q).unique().one()
for a in shout.authors: 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) viewed = await ViewedStorage.get_shout(shout.slug)
shout.stat = { shout.stat = {
"rating": rating, "rating": rating,

View File

@ -56,7 +56,7 @@ async def followed_reactions(slug):
return session.query( return session.query(
Reaction.shout Reaction.shout
).where( ).where(
Reaction.author == slug Reaction.createdBy == slug
).filter( ).filter(
Reaction.createdAt > user.lastSeen Reaction.createdAt > user.lastSeen
).all() ).all()