This commit is contained in:
parent
85931d04ba
commit
180dab1c06
|
@ -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:
|
||||
|
|
|
@ -73,6 +73,7 @@ input ReactionBy {
|
|||
shouts: [String]
|
||||
search: String
|
||||
comment: Boolean
|
||||
rating: Boolean
|
||||
topic: String
|
||||
created_by: Int
|
||||
after: Int
|
||||
|
|
Loading…
Reference in New Issue
Block a user