Explorar o código

Metadata having gemini urls are now clickable.

default %!s(int64=2) %!d(string=hai) anos
pai
achega
c016b68629
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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);