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()
|
[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,
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user