Add XML namespace definition, fix wrong closing tag
Some checks failed
CI / Test and lint (push) Has been cancelled

This commit is contained in:
Râu Cao 2025-06-03 11:30:11 +04:00
parent b307d4de03
commit cd335a366e
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -34,7 +34,7 @@ export async function profileAtomFeed(
return ` return `
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:nostr="urn:nostr:protocol">
<title>${profile.name} on Nostr (Articles)</title> <title>${profile.name} on Nostr (Articles)</title>
<link rel="alternate" type="text/html" href="${profile.profileUrl}" /> <link rel="alternate" type="text/html" href="${profile.profileUrl}" />
<link rel="alternate" type="application/nostr+json" href="nostr:${profile.npub}" /> <link rel="alternate" type="application/nostr+json" href="nostr:${profile.npub}" />
@ -44,7 +44,7 @@ export async function profileAtomFeed(
<author> <author>
<name>${profile.name}</name> <name>${profile.name}</name>
<uri>${profile.profileUrl}</uri> <uri>${profile.profileUrl}</uri>
<nostr:uri>nostr:${profile.nprofile}</nostr> <nostr:uri>nostr:${profile.nprofile}</nostr:uri>
</author> </author>
${articlesXml} ${articlesXml}
</feed> </feed>