lemmy/crates/api_common/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
..
build_response.rs fix some typos (#4519) 2024-03-08 10:38:20 +01:00
claims.rs Make request models derive PartialEq, Eq, and Hash (#4443) 2024-02-11 00:32:14 -05:00
comment.rs View report history for a post or comment. Fixes #4190 (#4492) 2024-03-05 11:31:40 +01:00
community.rs Make request models derive PartialEq, Eq, and Hash (#4443) 2024-02-11 00:32:14 -05:00
context.rs Upgrade apub lib, correct webfinger content-type (#4498) 2024-03-06 11:21:46 -05:00
custom_emoji.rs Make request models derive PartialEq, Eq, and Hash (#4443) 2024-02-11 00:32:14 -05:00
lib.rs Expose LemmyErrorType in lemmy_api_common (#4439) 2024-02-24 19:54:27 -05:00
person.rs Add a vote_display_mode local_user setting. (#4450) 2024-03-13 12:10:58 -04:00
post.rs Add alt_text for posts. Fixes #1086 (#4477) 2024-03-05 11:34:57 +01:00
private_message.rs Make request models derive PartialEq, Eq, and Hash (#4443) 2024-02-11 00:32:14 -05:00
request.rs Store thumbnails in db table local_image (#4512) 2024-03-08 10:17:26 -05:00
send_activity.rs Send purges to federated instances (fixes #4119) (#4398) 2024-01-25 09:24:09 -05:00
sensitive.rs Upgrade api_test deps (#2850) 2023-05-10 16:31:37 -04:00
site.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
utils.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00