lemmy/crates/utils/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
..
rate_limit fix some typos (#4519) 2024-03-08 10:38:20 +01:00
settings Expose LemmyErrorType in lemmy_api_common (#4439) 2024-02-24 19:54:27 -05:00
utils Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
apub.rs Fixing `.drone.yml` (#2677) 2023-01-30 14:17:24 -05:00
cache_header.rs Add http cache for webfingers (#3317) 2023-07-19 06:09:04 -04:00
email.rs Move usage of env::var to lemmy_utils, simplify db init (ref #4095) (#4108) 2023-10-25 11:34:38 -04:00
error.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
lib.rs Remove error-type feature from lemmy-utils (#4474) 2024-02-27 11:13:52 -05:00
main.rs Remove error-type feature from lemmy-utils (#4474) 2024-02-27 11:13:52 -05:00
request.rs Add cargo feature for building lemmy_api_common with mininum deps (#2243) 2022-05-03 17:44:13 +00:00
response.rs Use `pretty_assertions` for assertions (#4347) 2024-01-04 04:47:18 -05:00
version.rs For untagged commits, include hash in version name (fixes #1563) 2021-04-12 13:47:58 +02:00