From d9357a118a05807a1b0050e651e7118c53bf1aec Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 18 Mar 2026 15:52:37 +0100 Subject: If latitude or longitude are not numbers, use them as string. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index fd7e594..b7461c1 100644 --- a/html.c +++ b/html.c @@ -3152,7 +3152,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, else if (!xs_is_null(latitude) && !xs_is_null(longitude)) { xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", - xs_number_str(latitude), xs_number_str(longitude)); + xs_or(xs_number_str(latitude), latitude), xs_or(xs_number_str(longitude), longitude)); xs_html_add(snac_content_wrap, xs_html_tag("p", -- cgit v1.2.3