Add an option to basicFormatting to skip links

SQUASH
This commit is contained in:
Daniele Tonon
2023-11-28 19:51:43 +01:00
parent 35d053fc87
commit 8a99017259
5 changed files with 13 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ func renderProfile(w http.ResponseWriter, r *http.Request, code string) {
Metadata: data.metadata,
NormalizedAuthorWebsiteURL: normalizeWebsiteURL(data.metadata.Website),
RenderedAuthorAboutText: template.HTML(basicFormatting(html.EscapeString(data.metadata.About), false, false)),
RenderedAuthorAboutText: template.HTML(basicFormatting(html.EscapeString(data.metadata.About), false, false, false)),
Npub: data.npub,
Nprofile: data.nprofile,
AuthorRelays: data.authorRelays,