Add XML namespace definition, fix wrong closing tag
Some checks failed
CI / Test and lint (push) Has been cancelled
Some checks failed
CI / Test and lint (push) Has been cancelled
This commit is contained in:
parent
b307d4de03
commit
cd335a366e
4
feeds.ts
4
feeds.ts
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user