mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 20:03:17 -06:00
fix type query keys
This commit is contained in:
parent
6ee3dfa9f8
commit
f16bf142fe
1 changed files with 2 additions and 2 deletions
|
|
@ -107,10 +107,10 @@ func (p *Processor) NotificationsGet(
|
||||||
// Build type query string.
|
// Build type query string.
|
||||||
query := make(url.Values)
|
query := make(url.Values)
|
||||||
for _, typ := range types {
|
for _, typ := range types {
|
||||||
query.Add("types", typ.String())
|
query.Add("types[]", typ.String())
|
||||||
}
|
}
|
||||||
for _, typ := range excludeTypes {
|
for _, typ := range excludeTypes {
|
||||||
query.Add("exclude_types", typ.String())
|
query.Add("exclude_types[]", typ.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
return paging.PackageResponse(paging.ResponseParams{
|
return paging.PackageResponse(paging.ResponseParams{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue