lemmy/crates/api/src/local_user
flamingos-cant 19a1a077c5
Add a blocklist for URLs. (#4515)
* Add a blocklist for URLs.

* Fix SQL format

* Make clippy happy.

* Use regex for URL matching.

* Escape regex chars in URLs.

* Use post for modification.

* Make URL block regex static and remove API routes.

* Add date fields to table and use transaction.

* Use Cache for blocklist.

* Rename check_links + move list to parameters of process_markdown.

* SQL format.

* Format, again.

* Remove println.

* Add API test.

* Set a shorter lifetime for regex in debug mode.

* Add missing macro.

* Update lemmy-js-client

* Update api_test/pnpm-lock.yaml

* Don't break other tests

* Use different URL for test

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2024-03-15 07:03:29 -04: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 When site banning a federated user, also remove their content from our local communities. (#4464) 2024-03-01 13:45:06 -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 Change 2FA to use hostname as issuer (fixes #4518) (#4525) 2024-03-11 16:27:05 -04:00
logout.rs Change logout endpoint to return SuccessResponse (#4121) 2023-10-31 08:41:52 -04:00
mod.rs Require verified email to reset password (#4482) 2024-02-29 09:12:45 -05: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 Require verified email to reset password (#4482) 2024-02-29 09:12:45 -05:00
save_settings.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
update_totp.rs Change 2FA to use hostname as issuer (fixes #4518) (#4525) 2024-03-11 16:27:05 -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