mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Fixed crash.
This commit is contained in:
parent
220f611eac
commit
a0fc1b38eb
1 changed files with 1 additions and 1 deletions
2
html.c
2
html.c
|
@ -1944,7 +1944,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
|
||||||
const char *name = xs_dict_get(a, "name");
|
const char *name = xs_dict_get(a, "name");
|
||||||
|
|
||||||
/* if this image is already in the post content, skip */
|
/* if this image is already in the post content, skip */
|
||||||
if (xs_str_in(content, href) != -1)
|
if (content && xs_str_in(content, href) != -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {
|
if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue