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
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>
2 months ago
..
api Add a blocklist for URLs. (#4515) 2 months ago
api_common Add a blocklist for URLs. (#4515) 2 months ago
api_crud Add a blocklist for URLs. (#4515) 2 months ago
apub Add a blocklist for URLs. (#4515) 2 months ago
db_perf Remove error-type feature from lemmy-utils (#4474) 3 months ago
db_schema Add a blocklist for URLs. (#4515) 2 months ago
db_views Adding extra fields to PostReport and CommentReport views. (#4520) 2 months ago
db_views_actor Support listing type for person (fixes #4146) (#4487) 3 months ago
db_views_moderator View mod history for a post or comment. Fixes #4162 (#4491) 3 months ago
federate Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486) 3 months ago
routes Fix missing private key for signed fetch (#4516) 3 months ago
utils Add a blocklist for URLs. (#4515) 2 months ago