diff options
| author | default <nobody@localhost> | 2024-12-19 14:37:52 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-12-19 14:37:52 +0100 |
| commit | 7e028f6b50bb0959f09185c1076285a2cf475c03 (patch) | |
| tree | 0caeda51bddcb8a42397c22f0da422d29863d014 | |
| parent | 13d4fde316c8281e3100017b4b8eca4fc0dfc925 (diff) | |
Minor search tweak.
| -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, /* test for the alternate post id */ const char *url = xs_dict_get(post, "url"); - if (!xs_is_null(url) && strcmp(url, regex) == 0) { + if (xs_type(url) == XSTYPE_STRING && strcmp(url, regex) == 0) { if (xs_set_add(&seen, md5) == 1) show--; |