This commit is contained in:
parent
23a6bf66b9
commit
9de86c0fae
|
@ -370,6 +370,9 @@ def apply_filters(q: select, filters: dict[str, Any]) -> select:
|
||||||
if by_after:
|
if by_after:
|
||||||
ts = int(by_after)
|
ts = int(by_after)
|
||||||
q = q.filter(Shout.created_at > ts)
|
q = q.filter(Shout.created_at > ts)
|
||||||
|
by_community = filters.get("community")
|
||||||
|
if by_community:
|
||||||
|
q = q.filter(Shout.community == by_community)
|
||||||
|
|
||||||
return q
|
return q
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ input LoadShoutsFilters {
|
||||||
featured: Boolean
|
featured: Boolean
|
||||||
reacted: Boolean # requires auth, used in load_shouts_feed
|
reacted: Boolean # requires auth, used in load_shouts_feed
|
||||||
after: Int
|
after: Int
|
||||||
|
community: Int
|
||||||
}
|
}
|
||||||
|
|
||||||
input LoadShoutsOptions {
|
input LoadShoutsOptions {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user