diff options
| author | grunfink <grunfink@comam.es> | 2025-08-12 11:31:23 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-08-12 11:31:23 +0200 |
| commit | 5885589e5896d8d15be03364826aab45f04fb830 (patch) | |
| tree | 78a60783be4ed2a2a5951072ab071894e82a2316 | |
| parent | c3f4a26f558c596197977f9fc7baa6bfa608a4bb (diff) | |
content_search() also looks in the attributedTo field.
| -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, xs *c = xs_str_new(NULL); const char *content = xs_dict_get(post, "content"); const char *name = xs_dict_get(post, "name"); + const char *atto = get_atto(post); if (!xs_is_null(content)) c = xs_str_cat(c, content); if (!xs_is_null(name)) c = xs_str_cat(c, " ", name); + if (!xs_is_null(atto)) + c = xs_str_cat(c, " ", atto); /* add alt-texts from attachments */ const xs_list *atts = xs_dict_get(post, "attachment"); |