summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/data.c b/data.c
index 5abbeaf..0cceefd 100644
--- a/data.c
+++ b/data.c
@@ -2381,6 +2381,11 @@ xs_list *content_search(snac *user, const char *regex,
2381 if (!xs_match(xs_dict_get_def(post, "type", "-"), POSTLIKE_OBJECT_TYPE)) 2381 if (!xs_match(xs_dict_get_def(post, "type", "-"), POSTLIKE_OBJECT_TYPE))
2382 continue; 2382 continue;
2383 2383
2384 const char *id = xs_dict_get(post, "id");
2385
2386 if (id == NULL || is_hidden(user, id))
2387 continue;
2388
2384 char *content = xs_dict_get(post, "content"); 2389 char *content = xs_dict_get(post, "content");
2385 2390
2386 if (xs_is_null(content)) 2391 if (xs_is_null(content))