lemmy/crates/db_schema/src/impls
Dessalines 6d8d23130d
Adding an image_details table to store image dimensions. (#4704)
* Adding an image_details table to store image dimensions.

- Adds an image_details table, which stores the height,
  width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
  the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703

* Running sql format.

* Running fmt.

* Don't fetch metadata in background for local API requests.

* Dont export remote_image table to typescript.

* Cleaning up validate.

* Dont proxy url.

* Fixing tests, fixing issue with federated thumbnails.

* Fix tests.

* Updating corepack, fixing issue.

* Refactoring image inserts to use transactions.

* Use select exists again.

* Fixing imports.

* Fix test.

* Removing pointless backgrounded metadata generation version.

* Removing public pictrs details route.

* Fixing clippy.

* Running prettier.

* A few more fixes.

* Moving diesel schema check back down.

* Addressing PR comments.

* Changing back request head to get.

* Fixing lockfile.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-20 12:44:06 +02: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 Adding an image_details table to store image dimensions. (#4704) 2024-06-20 12:44:06 +02: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