Browse Source

Metadata having gemini urls are now clickable.

default 10 months ago
parent
commit
c016b68629
1 changed files with 7 additions and 0 deletions
  1. 7 0
      html.c

+ 7 - 0
html.c

@@ -867,6 +867,13 @@ static xs_html *html_user_body(snac *user, int read_only)
                             xs_html_text(v));
                     }
                 }
+                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);