mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Metadata having gemini urls are now clickable.
This commit is contained in:
parent
ddff08a823
commit
c016b68629
1 changed files with 7 additions and 0 deletions
7
html.c
7
html.c
|
@ -867,6 +867,13 @@ static xs_html *html_user_body(snac *user, int read_only)
|
||||||
xs_html_text(v));
|
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
|
else
|
||||||
value = xs_html_text(v);
|
value = xs_html_text(v);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue