diff options
| author | 2026-03-18 15:52:37 +0100 | |
|---|---|---|
| committer | 2026-03-18 15:52:37 +0100 | |
| commit | d9357a118a05807a1b0050e651e7118c53bf1aec (patch) | |
| tree | 5467ba364da911a2ea82ca09ab4a5035b44acc76 /html.c | |
| parent | Don't use a NULL md5 in quoted post anchors. (diff) | |
| download | snac2-d9357a118a05807a1b0050e651e7118c53bf1aec.tar.gz snac2-d9357a118a05807a1b0050e651e7118c53bf1aec.tar.xz snac2-d9357a118a05807a1b0050e651e7118c53bf1aec.zip | |
If latitude or longitude are not numbers, use them as string.
Diffstat (limited to 'html.c')
| -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, | |||
| 3152 | else | 3152 | else |
| 3153 | if (!xs_is_null(latitude) && !xs_is_null(longitude)) { | 3153 | if (!xs_is_null(latitude) && !xs_is_null(longitude)) { |
| 3154 | xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", | 3154 | xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", |
| 3155 | xs_number_str(latitude), xs_number_str(longitude)); | 3155 | xs_or(xs_number_str(latitude), latitude), xs_or(xs_number_str(longitude), longitude)); |
| 3156 | 3156 | ||
| 3157 | xs_html_add(snac_content_wrap, | 3157 | xs_html_add(snac_content_wrap, |
| 3158 | xs_html_tag("p", | 3158 | xs_html_tag("p", |