diff options
| author | 2024-10-28 09:37:02 +0100 | |
|---|---|---|
| committer | 2024-10-28 09:37:02 +0100 | |
| commit | a0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7 (patch) | |
| tree | ddf005de5889bc97c9f9f08a4e36d6a4aabc7ec0 | |
| parent | Updated TODO. (diff) | |
| download | snac2-a0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7.tar.gz snac2-a0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7.tar.xz snac2-a0fc1b38eb3a343b06217ff0b2d73f4e8ec86bb7.zip | |
Fixed crash.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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) { |