lemmy/crates/api/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 Send purges to federated instances (fixes #4119) (#4398) 2024-01-25 09:24:09 -05:00
comment_report View report history for a post or comment. Fixes #4190 (#4492) 2024-03-05 11:31:40 +01:00
community Send purges to federated instances (fixes #4119) (#4398) 2024-01-25 09:24:09 -05:00
local_user Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
post Adding ability to hide posts. (#4480) 2024-02-29 10:42:34 -05:00
post_report View report history for a post or comment. Fixes #4190 (#4492) 2024-03-05 11:31:40 +01:00
private_message Remove explicit auth params (#3946) 2023-09-21 06:42:28 -04:00
private_message_report Fixing private message reports. (#4279) 2023-12-18 10:25:05 +01:00
site Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
lib.rs Change 2FA to use hostname as issuer (fixes #4518) (#4525) 2024-03-11 16:27:05 -04:00
sitemap.rs Use pretty_assertions for assertions (#4347) 2024-01-04 04:47:18 -05:00