This commit is contained in:
parent
85931d04ba
commit
180dab1c06
|
@ -282,6 +282,8 @@ def apply_reaction_filters(by, q):
|
||||||
|
|
||||||
if by.get('comment', False):
|
if by.get('comment', False):
|
||||||
q = q.filter(Reaction.kind == ReactionKind.COMMENT.value)
|
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', '')
|
by_search = by.get('search', '')
|
||||||
if len(by_search) > 2:
|
if len(by_search) > 2:
|
||||||
|
|
|
@ -73,6 +73,7 @@ input ReactionBy {
|
||||||
shouts: [String]
|
shouts: [String]
|
||||||
search: String
|
search: String
|
||||||
comment: Boolean
|
comment: Boolean
|
||||||
|
rating: Boolean
|
||||||
topic: String
|
topic: String
|
||||||
created_by: Int
|
created_by: Int
|
||||||
after: Int
|
after: Int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user