mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
fix(blog): fix RSS feed link path, image path and blog date (#8483)
This commit is contained in:
+5
-3
@@ -25,10 +25,12 @@ export function getRSS() {
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
image: page.data.image
|
||||
? `${baseUrl}${page.data.image.startsWith("/") ? page.data.image.slice(1) : page.data.image}`
|
||||
? page.data.image.startsWith("/")
|
||||
? `${baseUrl}${page.data.image.slice(1)}`
|
||||
: page.data.image
|
||||
: undefined,
|
||||
link: `${baseUrl}${url.startsWith("/") ? url.slice(1) : url}`,
|
||||
date: new Date(page.data.lastModified ?? page.data.date),
|
||||
link: url.startsWith("/") ? `${baseUrl}${url.slice(1)}` : url,
|
||||
date: new Date(page.data.date),
|
||||
author: page.data.author
|
||||
? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user