lemmy/crates/api_common/src
biosfood 384e55f0e4
update moderator view (#3820)
* update api tests for new moderator view

* chage moderator view to be a listing type in get posts

Note: Internally, the listing type is called ListingType.ModeratorView,
but it's called "Moderator View" in the api endpoint

* fix formatting

* add support for moderator view to list comments

* add api test for moderator view when listing comments

* fix api test formatting

* retry tests

* don't filter out blocked users and communities when using moderator view

* fix cargo tests failing

* fix formatting

* fix previous merge

* Adding ModeratorView to listing_type_enums

* Fixing fmt.

* Adding a default to ListingType.

* Upgrading to use new lemmy-js-client.

---------

Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-08-31 13:07:45 +02:00
..
build_response.rs Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857) 2023-08-11 11:13:14 +02:00
comment.rs Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 (#3523) 2023-08-08 11:40:28 +02:00
community.rs add new flag to api (#3363) 2023-06-27 06:45:26 -04:00
context.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
custom_emoji.rs Improve api response times by doing send_activity asynchronously (#3493) 2023-07-10 12:27:49 +02:00
lib.rs Remove SendActivity and Perform traits, rely on channel (#3596) 2023-07-19 09:49:41 -04:00
person.rs Make remove content optional during account deletion (fixes #1617) (#3817) 2023-08-28 12:23:45 +02:00
post.rs update moderator view (#3820) 2023-08-31 13:07:45 +02:00
private_message.rs Allow filtering PMs by sender (#3770) 2023-08-08 11:07:41 +02:00
request.rs Make remove content optional during account deletion (fixes #1617) (#3817) 2023-08-28 12:23:45 +02:00
send_activity.rs Make remove content optional during account deletion (fixes #1617) (#3817) 2023-08-28 12:23:45 +02:00
sensitive.rs Upgrade api_test deps (#2850) 2023-05-10 16:31:37 -04:00
site.rs Make resolve_object not require auth #3685 (#3716) 2023-07-26 12:17:42 -04:00
utils.rs Allow passing auth via header or cookie (#3725) 2023-08-29 10:47:57 -04:00