fix: 404
This commit is contained in:
parent
920ac8b32e
commit
02789dc47c
3 changed files with 21 additions and 1 deletions
|
@ -12,6 +12,11 @@
|
||||||
/feeds/books.xml /feeds/books 301
|
/feeds/books.xml /feeds/books 301
|
||||||
/feeds/movies.xml /feeds/movies 301
|
/feeds/movies.xml /feeds/movies 301
|
||||||
/feeds/all.xml /feeds/all 301
|
/feeds/all.xml /feeds/all 301
|
||||||
|
/feeds/posts/ /feeds/posts 301
|
||||||
|
/feeds/links/ /feeds/links 301
|
||||||
|
/feeds/books/ /feeds/books 301
|
||||||
|
/feeds/movies/ /feeds/movies 301
|
||||||
|
/feeds/all/ /feeds/all 301
|
||||||
|
|
||||||
# general
|
# general
|
||||||
/articles/ /posts/ 301
|
/articles/ /posts/ 301
|
||||||
|
|
|
@ -8,7 +8,7 @@ CREATE OR REPLACE FUNCTION public.search_optimized_index(search_query text, page
|
||||||
genre_name text,
|
genre_name text,
|
||||||
genre_url text,
|
genre_url text,
|
||||||
type text,
|
type text,
|
||||||
total_plays text, -- Changed to text
|
total_plays text,
|
||||||
rank real,
|
rank real,
|
||||||
total_count bigint
|
total_count bigint
|
||||||
)
|
)
|
||||||
|
|
|
@ -89,6 +89,21 @@ WITH search_data AS (
|
||||||
optimized_shows s
|
optimized_shows s
|
||||||
WHERE
|
WHERE
|
||||||
s.last_watched_at IS NOT NULL
|
s.last_watched_at IS NOT NULL
|
||||||
|
UNION ALL
|
||||||
|
SELECT
|
||||||
|
'movie' AS type,
|
||||||
|
CONCAT('🎬 ', m.title, ' (', m.rating, ')') AS title,
|
||||||
|
CONCAT('https://coryd.dev', m.url) AS url,
|
||||||
|
m.description AS description,
|
||||||
|
m.tags,
|
||||||
|
NULL AS genre_name,
|
||||||
|
NULL AS genre_url,
|
||||||
|
NULL::text AS total_plays,
|
||||||
|
m.last_watched AS content_date
|
||||||
|
FROM
|
||||||
|
optimized_movies m
|
||||||
|
WHERE
|
||||||
|
m.rating IS NOT NULL
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
ROW_NUMBER() OVER (ORDER BY url) AS id,
|
ROW_NUMBER() OVER (ORDER BY url) AS id,
|
||||||
|
|
Reference in a new issue