diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -2802,10 +2802,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2802 | xs *quoted_post = NULL; | 2802 | xs *quoted_post = NULL; |
| 2803 | 2803 | ||
| 2804 | if (valid_status(object_get(quoted_id, "ed_post))) { | 2804 | if (valid_status(object_get(quoted_id, "ed_post))) { |
| 2805 | xs *md5 = xs_md5_hex(quoted_id, strlen(quoted_id)); | ||
| 2806 | |||
| 2805 | xs_html_add(snac_content, | 2807 | xs_html_add(snac_content, |
| 2806 | xs_html_tag("blockquote", | 2808 | xs_html_tag("blockquote", |
| 2807 | xs_html_attr("class", "snac-quoted-post"), | 2809 | xs_html_attr("class", "snac-quoted-post"), |
| 2808 | html_entry(user, quoted_post, 1, level + 1, NULL, 1))); | 2810 | html_entry(user, quoted_post, 1, level + 1, md5, 1))); |
| 2809 | } | 2811 | } |
| 2810 | else | 2812 | else |
| 2811 | if (user) | 2813 | if (user) |
| @@ -3150,7 +3152,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 3150 | else | 3152 | else |
| 3151 | if (!xs_is_null(latitude) && !xs_is_null(longitude)) { | 3153 | if (!xs_is_null(latitude) && !xs_is_null(longitude)) { |
| 3152 | xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", | 3154 | xs *url = xs_fmt("https://openstreetmap.org/search/?query=%s,%s", |
| 3153 | xs_number_str(latitude), xs_number_str(longitude)); | 3155 | xs_or(xs_number_str(latitude), latitude), xs_or(xs_number_str(longitude), longitude)); |
| 3154 | 3156 | ||
| 3155 | xs_html_add(snac_content_wrap, | 3157 | xs_html_add(snac_content_wrap, |
| 3156 | xs_html_tag("p", | 3158 | xs_html_tag("p", |