summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index cfa9a80..93d218c 100644
--- a/html.c
+++ b/html.c
@@ -1944,7 +1944,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
1944 const char *name = xs_dict_get(a, "name"); 1944 const char *name = xs_dict_get(a, "name");
1945 1945
1946 /* if this image is already in the post content, skip */ 1946 /* if this image is already in the post content, skip */
1947 if (xs_str_in(content, href) != -1) 1947 if (content && xs_str_in(content, href) != -1)
1948 continue; 1948 continue;
1949 1949
1950 if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) { 1950 if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {