You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/crates/api/src/site
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>
3 months ago
..
purge When purging a federated user, federate local community removals. (#4505) 3 months ago
registration_applications Remove explicit auth params (#3946) 8 months ago
block.rs Dont allow blocking local instance (fixes #4241) (#4242) 6 months ago
federated_instances.rs Get rid of remaining Perform/SendActivity traits (fixes #3670) (#3926) 9 months ago
leave_admin.rs Add a blocklist for URLs. (#4515) 3 months ago
mod.rs User can block instances (fixes #2397) (#3869) 8 months ago
mod_log.rs View mod history for a post or comment. Fixes #4162 (#4491) 3 months ago