diff options
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -2984,11 +2984,14 @@ xs_list *content_search(snac *user, const char *regex, | |||
| 2984 | xs *c = xs_str_new(NULL); | 2984 | xs *c = xs_str_new(NULL); |
| 2985 | const char *content = xs_dict_get(post, "content"); | 2985 | const char *content = xs_dict_get(post, "content"); |
| 2986 | const char *name = xs_dict_get(post, "name"); | 2986 | const char *name = xs_dict_get(post, "name"); |
| 2987 | const char *atto = get_atto(post); | ||
| 2987 | 2988 | ||
| 2988 | if (!xs_is_null(content)) | 2989 | if (!xs_is_null(content)) |
| 2989 | c = xs_str_cat(c, content); | 2990 | c = xs_str_cat(c, content); |
| 2990 | if (!xs_is_null(name)) | 2991 | if (!xs_is_null(name)) |
| 2991 | c = xs_str_cat(c, " ", name); | 2992 | c = xs_str_cat(c, " ", name); |
| 2993 | if (!xs_is_null(atto)) | ||
| 2994 | c = xs_str_cat(c, " ", atto); | ||
| 2992 | 2995 | ||
| 2993 | /* add alt-texts from attachments */ | 2996 | /* add alt-texts from attachments */ |
| 2994 | const xs_list *atts = xs_dict_get(post, "attachment"); | 2997 | const xs_list *atts = xs_dict_get(post, "attachment"); |