lemmy/crates/db_views/src
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
..
comment_report_view.rs Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
comment_view.rs Fix listing type default value (#2796) 2023-04-12 10:40:59 -04:00
custom_emoji_view.rs Add Custom Emojis Support (#2616) 2023-03-20 17:32:31 -04:00
lib.rs Add Custom Emojis Support (#2616) 2023-03-20 17:32:31 -04:00
local_user_view.rs Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
post_report_view.rs Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
post_view.rs Fix listing type default value (#2796) 2023-04-12 10:40:59 -04:00
private_message_report_view.rs Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
private_message_view.rs Get rid of Safe Views, use serde_skip (#2767) 2023-03-01 18:19:46 +01:00
registration_application_view.rs Adding TOTP / 2FA to lemmy (#2741) 2023-03-02 21:37:41 +01:00
site_view.rs Add diesel_async, get rid of blocking function (#2510) 2022-11-09 10:05:00 +00:00
structs.rs Add Custom Emojis Support (#2616) 2023-03-20 17:32:31 -04:00