diff options
| author | 2024-06-22 23:58:20 +0200 | |
|---|---|---|
| committer | 2024-06-22 23:58:20 +0200 | |
| commit | c016b686293e1b8d8a01dd7608c7ddec249a97b5 (patch) | |
| tree | cbaa0d95b096f4ea89128dfa78d11ab49f06b0e0 | |
| parent | Merge branch 'master' of /home/angel/git/snac2 (diff) | |
| download | snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.tar.gz snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.tar.xz snac2-c016b686293e1b8d8a01dd7608c7ddec249a97b5.zip | |
Metadata having gemini urls are now clickable.
| -rw-r--r-- | html.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -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, |