diff options
| author | 2024-05-11 18:46:15 +0200 | |
|---|---|---|
| committer | 2024-05-11 18:46:15 +0200 | |
| commit | e1ce85debd5b192b5dc56a4e9810839cc52b0f8b (patch) | |
| tree | 76b44e0d587b7476bd0dcf2f054e813583001a4b /data.c | |
| parent | Updated TODO. (diff) | |
| download | snac2-e1ce85debd5b192b5dc56a4e9810839cc52b0f8b.tar.gz snac2-e1ce85debd5b192b5dc56a4e9810839cc52b0f8b.tar.xz snac2-e1ce85debd5b192b5dc56a4e9810839cc52b0f8b.zip | |
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, | |||
| 2577 | if (!valid_status(timeline_get_by_md5(user, md5, &post))) | 2577 | if (!valid_status(timeline_get_by_md5(user, md5, &post))) |
| 2578 | continue; | 2578 | continue; |
| 2579 | 2579 | ||
| 2580 | if (!xs_match(xs_dict_get_def(post, "type", "-"), "Note|Question|Page|Article|Video")) | 2580 | if (!xs_match(xs_dict_get_def(post, "type", "-"), POSTLIKE_OBJECT_TYPE)) |
| 2581 | continue; | 2581 | continue; |
| 2582 | 2582 | ||
| 2583 | char *content = xs_dict_get(post, "content"); | 2583 | char *content = xs_dict_get(post, "content"); |