Add alternate links to Atom feeds
All checks were successful
CI / Test and lint (push) Successful in 15s
All checks were successful
CI / Test and lint (push) Successful in 15s
This commit is contained in:
2
feeds.ts
2
feeds.ts
@@ -20,6 +20,7 @@ export async function profileAtomFeed(
|
||||
<id>${articleId}</id>
|
||||
<title>${article.title}</title>
|
||||
<link href="${article.url}" />
|
||||
<link rel="alternate" type="application/nostr+json" href="nostr:${article.naddr}">
|
||||
<updated>${isoDate(article.updatedAt)}</updated>
|
||||
<published>${isoDate(article.publishedAt)}</published>
|
||||
<summary>${article.summary}</summary>
|
||||
@@ -34,6 +35,7 @@ export async function profileAtomFeed(
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>${profile.name} on Nostr (Articles)</title>
|
||||
<link rel="alternate" type="application/nostr+json" href="nostr:${profile.npub}">
|
||||
<id>${feedId}</id>
|
||||
<updated>${isoDate(lastUpdate)}</updated>
|
||||
<icon>${profile.avatarImageUrl}</icon>
|
||||
|
||||
Reference in New Issue
Block a user