summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/data.c b/data.c
index 038d7fd..f9dd76b 100644
--- a/data.c
+++ b/data.c
@@ -2750,6 +2750,15 @@ xs_list *content_search(snac *user, const char *regex,
2750 continue; 2750 continue;
2751 } 2751 }
2752 2752
2753 /* test for the alternate post id */
2754 const char *url = xs_dict_get(post, "url");
2755 if (!xs_is_null(url) && strcmp(url, regex) == 0) {
2756 if (xs_set_add(&seen, md5) == 1)
2757 show--;
2758
2759 continue;
2760 }
2761
2753 xs *c = xs_str_new(NULL); 2762 xs *c = xs_str_new(NULL);
2754 const char *content = xs_dict_get(post, "content"); 2763 const char *content = xs_dict_get(post, "content");
2755 const char *name = xs_dict_get(post, "name"); 2764 const char *name = xs_dict_get(post, "name");