mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +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,10 +1567,12 @@ 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))) {
|
||||
if (xs_is_null(xs_dict_get(m2, "name"))) {
|
||||
xs *st = mastoapi_status(&snac1, m2);
|
||||
des = xs_list_append(des, st);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
out = xs_dict_new();
|
||||
out = xs_dict_append(out, "ancestors", anc);
|
||||
|
|
Loading…
Reference in a new issue