commit c016b686293e1b8d8a01dd7608c7ddec249a97b5
parent ddff08a8231185ad679e56374eedf804d2488205
Author: default <nobody@localhost>
Date: Sat, 22 Jun 2024 23:58:20 +0200
Metadata having gemini urls are now clickable.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/html.c b/html.c
@@ -868,6 +868,13 @@ static xs_html *html_user_body(snac *user, int read_only)
}
}
else
+ if (xs_startswith(v, "gemini:/")) {
+ value = xs_html_tag("a",
+ xs_html_attr("rel", "me"),
+ xs_html_attr("href", v),
+ xs_html_text(v));
+ }
+ else
value = xs_html_text(v);
xs_html_add(snac_metadata,