Don't show votes to polls as descendants in mastoapi.

This commit is contained in:
default 2023-05-31 10:51:37 +02:00
parent db1bc858a1
commit 96481a3836

View file

@ -1567,8 +1567,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
xs *m2 = NULL; xs *m2 = NULL;
if (valid_status(timeline_get_by_md5(&snac1, v, &m2))) { if (valid_status(timeline_get_by_md5(&snac1, v, &m2))) {
xs *st = mastoapi_status(&snac1, m2); if (xs_is_null(xs_dict_get(m2, "name"))) {
des = xs_list_append(des, st); xs *st = mastoapi_status(&snac1, m2);
des = xs_list_append(des, st);
}
} }
} }