diff options
author | default <nobody@localhost> | 2024-05-11 18:46:15 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-11 18:46:15 +0200 |
commit | e1ce85debd5b192b5dc56a4e9810839cc52b0f8b (patch) | |
tree | 76b44e0d587b7476bd0dcf2f054e813583001a4b /data.c | |
parent | 3954361785c1384272b0e9fc7262bb25441101de (diff) |
Unified post-like object type match.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2577,7 +2577,7 @@ xs_list *content_search(snac *user, const char *regex, if (!valid_status(timeline_get_by_md5(user, md5, &post))) continue; - if (!xs_match(xs_dict_get_def(post, "type", "-"), "Note|Question|Page|Article|Video")) + if (!xs_match(xs_dict_get_def(post, "type", "-"), POSTLIKE_OBJECT_TYPE)) continue; char *content = xs_dict_get(post, "content"); |