const e=e=>{let t=e.metadata?.content?.external_urls?.[0]??`https://crossbell.io/notes/${e.characterId}-${e.noteId}`;return t.startsWith(`https://xn--`)&&(t=`https://crossbell.io/notes/${e.characterId}-${e.noteId}`),{title:e.metadata?.content?.title||``,description:e.metadata?.content?.content,link:t,pubDate:e.metadata?.content?.publishedAt,updated:e.metadata?.content?.updatedAt,author:e.metadata?.content?.authors?.[0]||e.character?.metadata?.content?.name||e.character?.handle,guid:`https://crossbell.io/notes/${e.characterId}-${e.noteId}`,category:[...e.metadata?.content?.sources||[],...e.metadata?.content?.tags||[]]}};export{e as t};