mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 00:43:38 +00:00
Don't show votes to polls as descendants in mastoapi.
This commit is contained in:
parent
db1bc858a1
commit
96481a3836
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue