filter-rating-only
All checks were successful
Deploy to core / deploy (push) Successful in 1m58s

This commit is contained in:
Untone 2024-02-07 18:39:55 +03:00
parent 85931d04ba
commit 180dab1c06
2 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,8 @@ 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))
by_search = by.get('search', '')
if len(by_search) > 2:

View File

@ -73,6 +73,7 @@ input ReactionBy {
shouts: [String]
search: String
comment: Boolean
rating: Boolean
topic: String
created_by: Int
after: Int