diff options
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -2427,6 +2427,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2427 | const char *o_href = xs_dict_get(a, "href"); | 2427 | const char *o_href = xs_dict_get(a, "href"); |
| 2428 | const char *name = xs_dict_get(a, "name"); | 2428 | const char *name = xs_dict_get(a, "name"); |
| 2429 | 2429 | ||
| 2430 | if (!xs_is_string(type) || !xs_is_string(o_href)) | ||
| 2431 | continue; | ||
| 2432 | |||
| 2430 | /* if this URL is already in the post content, skip */ | 2433 | /* if this URL is already in the post content, skip */ |
| 2431 | if (content && xs_str_in(content, o_href) != -1) | 2434 | if (content && xs_str_in(content, o_href) != -1) |
| 2432 | continue; | 2435 | continue; |