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/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>
2 months ago
..
activity.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
actor_language.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
captcha_answer.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
comment.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
comment_reply.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
comment_report.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
community.rs Local only community (#4350) 4 months ago
community_block.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
custom_emoji.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
custom_emoji_keyword.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
email_verification.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
federation_allowlist.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
federation_blocklist.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
federation_queue_state.rs Adding skip_serializing_none to federation state. (#4152) 6 months ago
image_upload.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
images.rs Store thumbnails in db table local_image (#4512) 2 months ago
instance.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
instance_block.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
language.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
local_site.rs Adding an instance-level default_sort_type (#4454) 3 months ago
local_site_rate_limit.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
local_site_url_blocklist.rs Add a blocklist for URLs. (#4515) 2 months ago
local_user.rs Add a vote_display_mode local_user setting. (#4450) 2 months ago
local_user_language.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
local_user_vote_display_mode.rs Add a vote_display_mode local_user setting. (#4450) 2 months ago
login_token.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
mod.rs Add a blocklist for URLs. (#4515) 2 months ago
moderator.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
password_reset_request.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
person.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
person_block.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
person_mention.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
post.rs Add alt_text for posts. Fixes #1086 (#4477) 3 months ago
post_report.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
private_message.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
private_message_report.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
registration_application.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
secret.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago
site.rs Fix missing private key for signed fetch (#4516) 2 months ago
tagline.rs Adding Selectable and diesel postgres backend check. (#4175) 6 months ago