mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 04:11:31 +00:00
19a1a077c5
* 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>
7 lines
210 B
SQL
7 lines
210 B
SQL
CREATE TABLE local_site_url_blocklist (
|
|
id serial NOT NULL PRIMARY KEY,
|
|
url text NOT NULL UNIQUE,
|
|
published timestamp with time zone NOT NULL DEFAULT now(),
|
|
updated timestamp with time zone
|
|
);
|
|
|