lemmy/crates/db_schema/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
..
aggregates Make SiteAggregates derive Copy and Hash (#4501) 2024-03-05 11:14:12 +01:00
impls Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
source Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
diesel_ltree.patch Adding a post_view mode. Fixes #3730 (#3731) 2023-08-31 09:01:08 -04:00
lib.rs Add site.content_warning, local_site.default_post_listing_mode (#4393) 2024-02-16 07:24:35 -05:00
newtypes.rs Move DbUrl trait impls to newtypes.rs (#4463) 2024-02-19 12:41:28 -05:00
schema.rs Add a blocklist for URLs. (#4515) 2024-03-15 07:03:29 -04:00
traits.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 2024-02-15 08:52:04 -05:00
utils.rs Adding some recommended fixes from nightly clippy. (#4473) 2024-02-26 09:47:10 -05:00