1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2024-12-14 14:29:56 +00:00
lemmy/migrations/2024-03-06-201637_url_blocklist
flamingos-cant 19a1a077c5
Add a blocklist for URLs. ()
* 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
..
down.sql Add a blocklist for URLs. () 2024-03-15 07:03:29 -04:00
up.sql Add a blocklist for URLs. () 2024-03-15 07:03:29 -04:00