superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.85k stars 339 forks source link

[bug] "link" header in response to "notifications" API doesn't include parameter "types" when used in the original request #3548

Closed Rengyr closed 2 days ago

Rengyr commented 1 week ago

Describe the bug with a clear and concise description of what the bug is.

When sending request to api/v1/notifications with parameters limit=20&types[]=mention the response header link doesn't contain types[]=mention in the next/prev links provided.

What's your GoToSocial Version?

GoToSocial 0.17.3+git-6f4cb2f

GoToSocial Arch

amd64 binary

What happened?

In API request to api/v1/notifications with parameters limit=20&types[]=mention the response header link doesn't contain types[]=mention in the next/prev links provided by GTS.

What you expected to happen?

types[]=... parameter is included in next/prev links in response header link if it was used in the original request.

How to reproduce it?

Anything else we need to know?

No response