fix: rss routes

This commit is contained in:
Steven
2024-01-29 21:04:35 +08:00
parent 54c5039db3
commit 2b7bd47b44
6 changed files with 65 additions and 94 deletions

View File

@ -93,7 +93,7 @@ const UserProfile = () => {
(user ? (
<>
<div className="relative -mt-6 top-8 w-full flex justify-end items-center">
<a className="" href={`/u/${user?.id}/rss.xml`} target="_blank" rel="noopener noreferrer">
<a className="" href={`/u/${encodeURIComponent(user?.username)}/rss.xml`} target="_blank" rel="noopener noreferrer">
<Button color="neutral" variant="outlined" endDecorator={<Icon.Rss className="w-4 h-auto opacity-60" />}>
RSS
</Button>