You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
10 months ago
..
build_response.rs Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857) 10 months ago
comment.rs Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 (#3523) 10 months ago
community.rs add new flag to api (#3363) 12 months ago
context.rs Make functions work with both connection and pool (#3420) 11 months ago
custom_emoji.rs Improve api response times by doing send_activity asynchronously (#3493) 11 months ago
lib.rs Remove SendActivity and Perform traits, rely on channel (#3596) 11 months ago
person.rs Make remove content optional during account deletion (fixes #1617) (#3817) 10 months ago
post.rs update moderator view (#3820) 10 months ago
private_message.rs Allow filtering PMs by sender (#3770) 10 months ago
request.rs Make remove content optional during account deletion (fixes #1617) (#3817) 10 months ago
send_activity.rs Make remove content optional during account deletion (fixes #1617) (#3817) 10 months ago
sensitive.rs Upgrade api_test deps (#2850) 1 year ago
site.rs Make resolve_object not require auth #3685 (#3716) 11 months ago
utils.rs Allow passing auth via header or cookie (#3725) 10 months ago