summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-06-22 23:58:20 +0200
committerGravatar default2024-06-22 23:58:20 +0200
commitc016b686293e1b8d8a01dd7608c7ddec249a97b5 (patch)
treecbaa0d95b096f4ea89128dfa78d11ab49f06b0e0 /html.c
parentMerge branch 'master' of /home/angel/git/snac2 (diff)
downloadpenes-snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.tar.gz
penes-snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.tar.xz
penes-snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.zip
Metadata having gemini urls are now clickable.
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/html.c b/html.c
index b4daf44..b9946e6 100644
--- a/html.c
+++ b/html.c
@@ -868,6 +868,13 @@ static xs_html *html_user_body(snac *user, int read_only)
868 } 868 }
869 } 869 }
870 else 870 else
871 if (xs_startswith(v, "gemini:/")) {
872 value = xs_html_tag("a",
873 xs_html_attr("rel", "me"),
874 xs_html_attr("href", v),
875 xs_html_text(v));
876 }
877 else
871 value = xs_html_text(v); 878 value = xs_html_text(v);
872 879
873 xs_html_add(snac_metadata, 880 xs_html_add(snac_metadata,