commit 5885589
grunfink
·
2025-08-12 09:31:23 +0000 UTC
parent c3f4a26
content_search() also looks in the attributedTo field.
1 files changed,
+3,
-0
M
data.c
M
data.c
+3,
-0
1@@ -2984,11 +2984,14 @@ xs_list *content_search(snac *user, const char *regex,
2 xs *c = xs_str_new(NULL);
3 const char *content = xs_dict_get(post, "content");
4 const char *name = xs_dict_get(post, "name");
5+ const char *atto = get_atto(post);
6
7 if (!xs_is_null(content))
8 c = xs_str_cat(c, content);
9 if (!xs_is_null(name))
10 c = xs_str_cat(c, " ", name);
11+ if (!xs_is_null(atto))
12+ c = xs_str_cat(c, " ", atto);
13
14 /* add alt-texts from attachments */
15 const xs_list *atts = xs_dict_get(post, "attachment");