From 7e028f6b50bb0959f09185c1076285a2cf475c03 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 19 Dec 2024 14:37:52 +0100 Subject: [PATCH] Minor search tweak. --- data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.c b/data.c index f9dd76b..74861b8 100644 --- a/data.c +++ b/data.c @@ -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--;