mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Minor search tweak.
This commit is contained in:
parent
13d4fde316
commit
7e028f6b50
1 changed files with 1 additions and 1 deletions
2
data.c
2
data.c
|
@ -2752,7 +2752,7 @@ xs_list *content_search(snac *user, const char *regex,
|
||||||
|
|
||||||
/* test for the alternate post id */
|
/* test for the alternate post id */
|
||||||
const char *url = xs_dict_get(post, "url");
|
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)
|
if (xs_set_add(&seen, md5) == 1)
|
||||||
show--;
|
show--;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue