diff options
| author | grunfink <grunfink@comam.es> | 2026-03-18 15:52:37 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-03-18 15:52:37 +0100 |
| commit | d9357a118a05807a1b0050e651e7118c53bf1aec (patch) | |
| tree | 5467ba364da911a2ea82ca09ab4a5035b44acc76 | |
| parent | ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3 (diff) | |
If latitude or longitude are not numbers, use them as string.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", |