diff options
| -rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2752,7 +2752,7 @@ xs_list *content_search(snac *user, const char *regex, | |||
| 2752 | 2752 | ||
| 2753 | /* test for the alternate post id */ | 2753 | /* test for the alternate post id */ |
| 2754 | const char *url = xs_dict_get(post, "url"); | 2754 | const char *url = xs_dict_get(post, "url"); |
| 2755 | if (!xs_is_null(url) && strcmp(url, regex) == 0) { | 2755 | if (xs_type(url) == XSTYPE_STRING && strcmp(url, regex) == 0) { |
| 2756 | if (xs_set_add(&seen, md5) == 1) | 2756 | if (xs_set_add(&seen, md5) == 1) |
| 2757 | show--; | 2757 | show--; |
| 2758 | 2758 | ||