diff options
Diffstat (limited to '')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "xs_set.h" | 10 | #include "xs_set.h" |
| 11 | #include "xs_time.h" | 11 | #include "xs_time.h" |
| 12 | #include "xs_regex.h" | 12 | #include "xs_regex.h" |
| 13 | #include "xs_match.h" | ||
| 13 | 14 | ||
| 14 | #include "snac.h" | 15 | #include "snac.h" |
| 15 | 16 | ||
| @@ -2570,8 +2571,7 @@ xs_list *content_search(snac *user, const char *regex, int priv, int max_secs, i | |||
| 2570 | if (!valid_status(timeline_get_by_md5(user, md5, &post))) | 2571 | if (!valid_status(timeline_get_by_md5(user, md5, &post))) |
| 2571 | continue; | 2572 | continue; |
| 2572 | 2573 | ||
| 2573 | /* must be a Note */ | 2574 | if (!xs_match(xs_dict_get_def(post, "type", "-"), "Note|Question|Page|Article|Video")) |
| 2574 | if (strcmp(xs_dict_get_def(post, "type", ""), "Note")) | ||
| 2575 | continue; | 2575 | continue; |
| 2576 | 2576 | ||
| 2577 | char *content = xs_dict_get(post, "content"); | 2577 | char *content = xs_dict_get(post, "content"); |