summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/data.c b/data.c
index 4e5851a..038d7fd 100644
--- a/data.c
+++ b/data.c
@@ -2742,6 +2742,14 @@ xs_list *content_search(snac *user, const char *regex,
2742 if (id == NULL || is_hidden(user, id)) 2742 if (id == NULL || is_hidden(user, id))
2743 continue; 2743 continue;
2744 2744
2745 /* test for the post URL */
2746 if (strcmp(id, regex) == 0) {
2747 if (xs_set_add(&seen, md5) == 1)
2748 show--;
2749
2750 continue;
2751 }
2752
2745 xs *c = xs_str_new(NULL); 2753 xs *c = xs_str_new(NULL);
2746 const char *content = xs_dict_get(post, "content"); 2754 const char *content = xs_dict_get(post, "content");
2747 const char *name = xs_dict_get(post, "name"); 2755 const char *name = xs_dict_get(post, "name");