lemmy/crates
dullbananas 6497ec519e
Refactor LocalUser settings conditions in database views (#4746)
* Create viewer.rs

* Rename viewer.rs to viewer.rs

* Update viewer.rs

* Update post_view.rs

* Update distinguish.rs

* Update like.rs

* Update viewer.rs

* Update list_comment_likes.rs

* Update like.rs

* Update save.rs

* Update like.rs

* revert changes in api crate

* Update post_view.rs

* Update post_view.rs

* Update comment_view.rs

* Update post_view.rs

* Update community_view.rs

* Update comment_view.rs

* Update post_view.rs

* Update viewer.rs

* Update post_view.rs

* Update community_view.rs

* Update local_user_view.rs

* Update viewer.rs

* Update community_view.rs

* Update viewer.rs

* Update lib.rs

* Update comment_view.rs

* Update post_view.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update local_user_view.rs

* Update viewer.rs

* Update viewer.rs

* Update local_user_view.rs

* Update community_view.rs

* Update viewer.rs

* Update crates/db_schema/src/viewer.rs

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update post_view.rs

* Update community_view.rs

* Update comment_view.rs

* Update viewer.rs

* Update post_view.rs

* Update save.rs

* Update resolve_object.rs

* Update viewer.rs

* Update save.rs

* Update resolve_object.rs

* Update comment_view.rs

* Update post_view.rs

* Update community_view.rs

* Update local_user_view.rs

* Update post_view.rs

* Update viewer.rs

* Update comment_view.rs

* Update post_view.rs

* Update community_view.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Update viewer.rs

* Some additions to localuser DB view helpers. (#39)

* Some additions to localuser DB view helpers.

- Getting rid of generics.
- Passing in only LocalUser to views.

* Formatting fixes.

* Getting rid of unecessary as_refs

* Fixing clippy.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-06-14 21:51:24 -04:00
..
api Replace wav with hound (#4788) 2024-06-07 10:27:49 -04:00
api_common Allow empty string to clear URL-type DB fields. (#4780) 2024-06-06 09:55:08 -04:00
api_crud Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
apub Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
db_perf Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
db_schema Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
db_views Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
db_views_actor Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
db_views_moderator Fixing extra modlog entries when post_id or comment_id is given. (#4664) 2024-04-25 10:26:17 +02:00
federate Revert "Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486)" (#4806) 2024-06-14 08:15:12 -04:00
routes Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
utils Don't change encoding style in `clean_url_params` (#4802) 2024-06-12 20:35:27 -04:00