lemmy/crates/api/src/local_user
Nutomic e8a52d3a5c
Rewrite images to use local proxy (#4035)
* Add markdown rule to add rel=nofollow for all links

* Add markdown image rule to add local image proxy (fixes #1036)

* comments

* rewrite markdown image links working

* add comment

* perform markdown image processing in api/apub receivers

* clippy

* add db table to validate proxied links

* rewrite link fields for avatar, banner etc

* sql fmt

* proxy links received over federation

* add config option

* undo post.url rewriting, move http route definition

* add tests

* proxy images through pictrs

* testing

* cleanup request.rs file

* more cleanup (fixes #2611)

* include url content type when sending post over apub (fixes #2611)

* store post url content type in db

* should be media_type

* get rid of cache_remote_thumbnails setting, instead automatically
take thumbnail from federation data if available.

* fix tests

* add setting disable_external_link_previews

* federate post url as image depending on mime type

* change setting again

* machete

* invert

* support custom emoji

* clippy

* update defaults

* add image proxy test, fix test

* fix test

* clippy

* revert accidental changes

* address review

* clippy

* Markdown link rule-dess (#4356)

* Extracting opengraph_data to its own type.

* A few additions for markdown-link-rule.

---------

Co-authored-by: Nutomic <me@nutomic.com>

* fix setting

* use enum for image proxy setting

* fix test configs

* add config backwards compat

* clippy

* machete

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-25 09:22:11 -05:00
..
notifications Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
add_admin.rs Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
ban_person.rs Fix banning of remote user (fixes #4169) (#4171) 2023-11-21 08:44:55 -05:00
block.rs Fix up convert more responses to SuccessResponse (#4066) 2023-10-19 20:15:55 -04:00
change_password.rs Add db table for login tokens which allows for invalidation (#3818) 2023-10-09 12:46:12 +02:00
change_password_after_reset.rs Remove empty API responses (#3993) 2023-10-16 12:36:53 -04:00
generate_totp_secret.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 2023-09-20 10:49:54 -04:00
get_captcha.rs Dont allow caching captcha response (#4381) 2024-01-19 10:41:05 -05:00
list_banned.rs Remove explicit auth params (#3946) 2023-09-21 06:42:28 -04:00
list_logins.rs Add db table for login tokens which allows for invalidation (#3818) 2023-10-09 12:46:12 +02:00
login.rs Dont create auth cookie in backend (#4136) 2023-11-08 07:55:09 -05:00
logout.rs Change logout endpoint to return SuccessResponse (#4121) 2023-10-31 08:41:52 -04:00
mod.rs Add validate_auth api endpoint (fixes #3702) (#4049) 2023-10-17 11:25:48 -04:00
report_count.rs Fixing issue with mods not being able to view reports. Fixes #4172 (#4174) 2023-11-21 16:33:49 +01:00
reset_password.rs Remove empty API responses (#3993) 2023-10-16 12:36:53 -04:00
save_settings.rs Rewrite images to use local proxy (#4035) 2024-01-25 09:22:11 -05:00
update_totp.rs Rework the way 2FA is enabled/disabled (fixes #3309) (#3959) 2023-09-20 10:49:54 -04:00
validate_auth.rs Revert "Dont ignore errors during login (fixes #4319) (#4321)" (#4380) 2024-01-19 11:21:43 -05:00
verify_email.rs Remove empty API responses (#3993) 2023-10-16 12:36:53 -04:00