lemmy/crates/db_schema/src/impls
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
..
activity.rs Move SQL triggers from migrations into reusable sql file (#4333) 2024-04-17 20:58:44 -04:00
actor_language.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
captcha_answer.rs Fixing some clippy and woodpecker lints. (#4565) 2024-03-26 10:17:42 +01:00
comment.rs Remove unimplemented in <Comment as Crud>::create (#4796) 2024-06-14 10:40:57 +02:00
comment_reply.rs Dont show replies / mentions from blocked users. Fixes #4227 (#4727) 2024-05-22 08:50:26 -04:00
comment_report.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 2024-02-15 08:52:04 -05:00
community.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
community_block.rs Remove id column and use different primary key on some tables (#4093) 2023-11-13 08:14:07 -05:00
custom_emoji.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
email_verification.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
federation_allowlist.rs Fixing some clippy and woodpecker lints. (#4565) 2024-03-26 10:17:42 +01:00
federation_blocklist.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
federation_queue_state.rs add federation queue state to get_federated_instances api (#4104) 2023-11-06 16:07:04 -05:00
images.rs Creating a LocalImageView, so that front ends have the Person struct. (#4631) 2024-04-16 19:20:44 -04:00
instance.rs Unit tests and cleanup for outgoing federation code (#4733) 2024-05-27 09:34:58 -04:00
instance_block.rs Remove id column and use different primary key on some tables (#4093) 2023-11-13 08:14:07 -05:00
language.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
local_site.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
local_site_rate_limit.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
local_site_url_blocklist.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
local_user.rs Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
local_user_vote_display_mode.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
login_token.rs Remove id column and use different primary key on some tables (#4093) 2023-11-13 08:14:07 -05:00
mod.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
moderator.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
password_reset_request.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
person.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
person_block.rs Remove id column and use different primary key on some tables (#4093) 2023-11-13 08:14:07 -05:00
person_mention.rs Dont show replies / mentions from blocked users. Fixes #4227 (#4727) 2024-05-22 08:50:26 -04:00
post.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
post_report.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
private_message.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
private_message_report.rs chore: fix some comments (#4637) 2024-04-17 14:35:54 +02:00
registration_application.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
secret.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
site.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
tagline.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00