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/impls
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 Use `pretty_assertions` for assertions (#4347) 5 months ago
actor_language.rs Adding some recommended fixes from nightly clippy. (#4473) 3 months ago
captcha_answer.rs Remove id column and use different primary key on some tables (#4093) 7 months ago
comment.rs When site banning a federated user, also remove their content from our local communities. (#4464) 3 months ago
comment_reply.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
comment_report.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 3 months ago
community.rs Correctly synchronize collection of community featured posts (fixes #3867) (#4475) 3 months ago
community_block.rs Remove id column and use different primary key on some tables (#4093) 7 months ago
custom_emoji.rs Make functions work with both connection and pool (#3420) 11 months ago
email_verification.rs Fix time zone handling (#3496) 9 months ago
federation_allowlist.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
federation_blocklist.rs Make functions work with both connection and pool (#3420) 11 months ago
federation_queue_state.rs add federation queue state to get_federated_instances api (#4104) 7 months ago
images.rs Rewrite images to use local proxy (#4035) 4 months ago
instance.rs Mark instance as alive after successful activity send (fixes #4039) (#4377) 4 months ago
instance_block.rs Remove id column and use different primary key on some tables (#4093) 7 months ago
language.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
local_site.rs Make functions work with both connection and pool (#3420) 11 months ago
local_site_rate_limit.rs Make functions work with both connection and pool (#3420) 11 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) 3 months ago
local_user_vote_display_mode.rs Add a vote_display_mode local_user setting. (#4450) 3 months ago
login_token.rs Remove id column and use different primary key on some tables (#4093) 7 months ago
mod.rs Add a blocklist for URLs. (#4515) 2 months ago
moderator.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
password_reset_request.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
person.rs When site banning a federated user, also remove their content from our local communities. (#4464) 3 months ago
person_block.rs Remove id column and use different primary key on some tables (#4093) 7 months ago
person_mention.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
post.rs Add alt_text for posts. Fixes #1086 (#4477) 3 months ago
post_report.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 3 months ago
private_message.rs Use `pretty_assertions` for assertions (#4347) 5 months ago
private_message_report.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 3 months ago
registration_application.rs Default imprementations for read and delete in Crud trait (#3707) 10 months ago
secret.rs Make functions work with both connection and pool (#3420) 11 months ago
site.rs Persistent, performant, reliable federation queue (#3605) 9 months ago
tagline.rs Make functions work with both connection and pool (#3420) 11 months ago