load-shouts-discussed-coauthored
All checks were successful
Deploy on push / deploy (push) Successful in 2m4s

This commit is contained in:
2024-07-16 01:06:43 +03:00
parent 1223c633d4
commit 77282ade62
5 changed files with 56 additions and 4 deletions

View File

@@ -342,6 +342,7 @@ def apply_reaction_filters(by, q):
if by.get("comment", False):
q = q.filter(Reaction.kind == ReactionKind.COMMENT.value)
if by.get("rating", False):
q = q.filter(Reaction.kind.in_(RATING_REACTIONS))
@@ -367,6 +368,7 @@ async def load_reactions_by(_, info, by, limit=50, offset=0):
:topic - to filter by topic
:search - to search by reactions' body
:comment - true if body.length > 0
:rating - true if kind is rating related
:after - amount of time ago
:sort - a fieldname to sort desc by default
}