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/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>
3 months ago
..
rate_limit fix some typos (#4519) 3 months ago
settings Expose LemmyErrorType in lemmy_api_common (#4439) 4 months ago
utils Add a blocklist for URLs. (#4515) 3 months ago
apub.rs Fixing `.drone.yml` (#2677) 1 year ago
cache_header.rs Add http cache for webfingers (#3317) 11 months ago
email.rs Move usage of env::var to lemmy_utils, simplify db init (ref #4095) (#4108) 8 months ago
error.rs Add a blocklist for URLs. (#4515) 3 months ago
lib.rs Remove error-type feature from lemmy-utils (#4474) 4 months ago
main.rs Remove error-type feature from lemmy-utils (#4474) 4 months ago
request.rs Add cargo feature for building lemmy_api_common with mininum deps (#2243) 2 years ago
response.rs Use `pretty_assertions` for assertions (#4347) 6 months ago
version.rs For untagged commits, include hash in version name (fixes #1563) 3 years ago