summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index d4661a0..70bd031 100644
--- a/data.c
+++ b/data.c
@@ -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");