lemmy/crates
Nutomic 9d26ac2c6f
Fix listing type default value (#2796)
* Fix listing type default value

The listing type parameter is only meant for the frontpage, but is
also applied inside of communities. The result is that this call
returns nothing, because it defaults to ListingType::Local:
https://fedibb.ml/api/v3/post/list?community_id=3

It needs to be called like this to get any posts:
https://fedibb.ml/api/v3/post/list?community_id=3&type_=All

This is clearly not expected behaviour, when a community is
specified, the listing type should default to All.

* fix clippy
2023-04-12 10:40:59 -04:00
..
api Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00
api_common Fix listing type default value (#2796) 2023-04-12 10:40:59 -04:00
api_crud Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00
apub Fix listing type default value (#2796) 2023-04-12 10:40:59 -04:00
db_schema Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00
db_views Fix listing type default value (#2796) 2023-04-12 10:40:59 -04:00
db_views_actor Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
db_views_moderator Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
routes Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00
utils Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00