فهرست منبع

If latitude or longitude are not numbers, use them as string.

grunfink 4 ماه پیش
والد
کامیت
d9357a118a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      html.c

+ 1 - 1
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",