Compare commits

..

No commits in common. "cd335a366e8b522de1ac0740feaf9d1413c59f9e" and "91eff4ad07d410963540b9b217e770a6567d21fc" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -4,7 +4,6 @@ import { fetchArticlesByAuthor, fetchProfileEvent } from "../nostr.ts";
import { profileAtomFeed } from "../feeds.ts";
import Profile from "../models/profile.ts";
import { notFoundHandler } from "../handlers/errors.ts";
import { generateOgProfileImage } from "../magick.ts";
const userAtomFeedHandler = async function (ctx: Context) {
const username = ctx.state.username;
@ -21,7 +20,6 @@ const userAtomFeedHandler = async function (ctx: Context) {
const profile = new Profile(profileEvent, username);
if (profile.nip05) {
await generateOgProfileImage(profile);
const articles = await fetchArticlesByAuthor(pubkey, 10);
const atom = await profileAtomFeed(profile, articles);