lemmy/crates/api_crud/src
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
..
comment Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
community Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
custom_emoji Convert more responses to SuccessResponse. Fixes #2860 (#4058) 2023-10-19 13:21:05 -04:00
post Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
private_message Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
site Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
user Add a vote_display_mode local_user setting. (#4450) 2024-03-13 12:10:58 -04:00
lib.rs Rewrite remaining federation actions, get rid of PerformCrud trait (#3794) 2023-08-02 12:52:41 -04:00