sublinks / sublinks-api

MIT License
68 stars 17 forks source link

getPosts for single community returns all posts #391

Closed kgilles closed 1 month ago

kgilles commented 1 month ago

When making a GET request to /post/list with a specific community ID and name I've more recently started receiving every post rather than just the ones connected to the given community.

Example payload

{
  community_id: <number>,
  community_name: <string>
}

Works the same if I include type_ or sort. Ie. I'm getting posts from other communities.

In this case when sending in a specific community I'd expect to only see posts from this community in the response. This is also how it used to work, at least a couple of weeks back, when I was working on community creation.

Can be reproduced using the Docker dev setup, waiting for the seeder to complete, and then navigating to any community page. For example