Use nprofile for article author link

This commit is contained in:
Râu Cao 2025-05-02 13:04:15 +04:00
parent 7c2549cbfe
commit 3a5733eeee
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -233,7 +233,7 @@ function articleMetaHtml(article: Article, profile: Profile) {
<link rel="icon" href="${profile.avatarImageUrl}" type="image/png">
<link rel="alternate" type="application/nostr+json" href="nostr:${article.naddr}" title="This article on Nostr">
<link rel="author" type="text/html" href="${profile.profileUrl}" title="${profile.name}">
<link rel="author" type="application/nostr+json" href="nostr:${profile.npub}" title="${profile.name}">
<link rel="author" type="application/nostr+json" href="nostr:${profile.nprofile}" title="${profile.name}">
<meta property="og:url" content="${article.url}">
<meta property="og:type" content="website">
<meta property="og:title" content="${article.title}">