From 96481a38369b937fa4b61655c5efb1c1fd3c8b2a Mon Sep 17 00:00:00 2001 From: default Date: Wed, 31 May 2023 10:51:37 +0200 Subject: [PATCH] Don't show votes to polls as descendants in mastoapi. --- mastoapi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mastoapi.c b/mastoapi.c index ccd5773..f86778c 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -1567,8 +1567,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, xs *m2 = NULL; if (valid_status(timeline_get_by_md5(&snac1, v, &m2))) { - xs *st = mastoapi_status(&snac1, m2); - des = xs_list_append(des, st); + if (xs_is_null(xs_dict_get(m2, "name"))) { + xs *st = mastoapi_status(&snac1, m2); + des = xs_list_append(des, st); + } } }