lemmy/crates/api_crud/src/community
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
..
create.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
delete.rs Cleanup checks for community actions (fixes #2858, fixes #2868) (#4028) 2023-10-13 09:48:18 -04:00
list.rs Add site.content_warning, local_site.default_post_listing_mode (#4393) 2024-02-16 07:24:35 -05:00
mod.rs Rewrite some API handlers to remove Perform trait (#3735) 2023-07-28 10:39:38 -04:00
remove.rs Send purges to federated instances (fixes #4119) (#4398) 2024-01-25 09:24:09 -05:00
update.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00