lemmy/crates/db_schema/src/source
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
..
activity.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
actor_language.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
captcha_answer.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
comment.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
comment_reply.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
comment_report.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
community.rs Local only community (#4350) 2024-01-25 11:04:25 -05:00
community_block.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
custom_emoji.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
custom_emoji_keyword.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
email_verification.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
federation_allowlist.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
federation_blocklist.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
federation_queue_state.rs Adding skip_serializing_none to federation state. (#4152) 2023-11-14 08:20:44 -05:00
image_upload.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
images.rs Store thumbnails in db table local_image (#4512) 2024-03-08 10:17:26 -05:00
instance.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
instance_block.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
language.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
local_site.rs Adding an instance-level default_sort_type (#4454) 2024-02-16 09:36:46 -05:00
local_site_rate_limit.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
local_site_url_blocklist.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
local_user.rs Add a vote_display_mode local_user setting. (#4450) 2024-03-13 12:10:58 -04:00
local_user_language.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
local_user_vote_display_mode.rs Add a vote_display_mode local_user setting. (#4450) 2024-03-13 12:10:58 -04:00
login_token.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
mod.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
moderator.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
password_reset_request.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
person.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
person_block.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
person_mention.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
post.rs Add alt_text for posts. Fixes #1086 (#4477) 2024-03-05 11:34:57 +01:00
post_report.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
private_message.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
private_message_report.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
registration_application.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
secret.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00
site.rs Fix missing private key for signed fetch (#4516) 2024-03-08 10:23:15 -05:00
tagline.rs Adding Selectable and diesel postgres backend check. (#4175) 2023-11-21 08:42:28 -05:00