use naked (no relay hints) nip19 codes for canonical URLs and move them to head_common.

This commit is contained in:
fiatjaf
2023-10-28 11:48:56 -03:00
parent 500c136948
commit 1c36a379fd
5 changed files with 39 additions and 21 deletions

View File

@@ -30,6 +30,8 @@ var (
type HeadCommonPartial struct {
IsProfile bool
TailwindDebugStuff template.HTML
NaddrNaked string
NeventNaked string
}
func (*HeadCommonPartial) TemplateText() string { return tmplHeadCommon }
@@ -164,10 +166,9 @@ type OtherPage struct {
DetailsPartial `tmpl:"details"`
FooterPartial `tmpl:"footer"`
IsParameterizedReplaceable bool
Naddr string
Kind int
KindDescription string
Naddr string
Kind int
KindDescription string
}
func (*OtherPage) TemplateText() string { return tmplOther }
@@ -191,7 +192,6 @@ type NotePage struct {
Description string
Image string
Metadata nostr.ProfileMetadata
Nevent string
Npub string
NpubShort string
Oembed string