This commit is contained in:
parent
bdae2abe25
commit
e7684c9c05
|
@ -487,12 +487,16 @@ def apply_reaction_filters(by, q):
|
||||||
shout_slug = by.get("shout")
|
shout_slug = by.get("shout")
|
||||||
if shout_slug:
|
if shout_slug:
|
||||||
q = q.filter(Shout.slug == shout_slug)
|
q = q.filter(Shout.slug == shout_slug)
|
||||||
|
|
||||||
|
shout_id = by.get("shout_id")
|
||||||
|
if shout_id:
|
||||||
|
q = q.filter(Shout.id == shout_id)
|
||||||
|
|
||||||
shouts = by.get("shouts")
|
shouts = by.get("shouts")
|
||||||
if shouts:
|
if shouts:
|
||||||
q = q.filter(Shout.slug.in_(shouts))
|
q = q.filter(Shout.slug.in_(shouts))
|
||||||
|
|
||||||
created_by = by.get("created_by")
|
created_by = by.get("created_by", by.get("author_id"))
|
||||||
if created_by:
|
if created_by:
|
||||||
q = q.filter(Author.id == created_by)
|
q = q.filter(Author.id == created_by)
|
||||||
|
|
||||||
|
|
|
@ -92,12 +92,14 @@ input LoadShoutsOptions {
|
||||||
|
|
||||||
input ReactionBy {
|
input ReactionBy {
|
||||||
shout: String
|
shout: String
|
||||||
|
shout_id: Int
|
||||||
shouts: [String]
|
shouts: [String]
|
||||||
search: String
|
search: String
|
||||||
kinds: [ReactionKind]
|
kinds: [ReactionKind]
|
||||||
reply_to: Int # filter
|
reply_to: Int # filter
|
||||||
topic: String
|
topic: String
|
||||||
created_by: Int
|
created_by: Int
|
||||||
|
author_id: Int
|
||||||
author: String
|
author: String
|
||||||
after: Int
|
after: Int
|
||||||
sort: ReactionSort # sort
|
sort: ReactionSort # sort
|
||||||
|
|
Loading…
Reference in New Issue
Block a user