mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Fixed some mastoapi minor errors.
This commit is contained in:
parent
4c6f1a79e4
commit
574c0ca8af
1 changed files with 11 additions and 4 deletions
|
@ -1108,6 +1108,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
xs_startswith(xs_dict_get(msg, "id"), snac2.actor)) {
|
||||
xs *st = mastoapi_status(&snac2, msg);
|
||||
|
||||
if (st)
|
||||
out = xs_list_append(out, st);
|
||||
}
|
||||
}
|
||||
|
@ -1354,6 +1355,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
|
||||
if (strcmp(type, "follow") != 0 && !xs_is_null(objid)) {
|
||||
xs *st = mastoapi_status(&snac1, entry);
|
||||
|
||||
if (st)
|
||||
mn = xs_dict_append(mn, "status", st);
|
||||
}
|
||||
|
||||
|
@ -1541,6 +1544,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
|
||||
if (valid_status(timeline_get_by_md5(&snac1, pid, &m2))) {
|
||||
xs *st = mastoapi_status(&snac1, m2);
|
||||
|
||||
if (st)
|
||||
anc = xs_list_insert(anc, 0, st);
|
||||
}
|
||||
else
|
||||
|
@ -1557,6 +1562,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
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);
|
||||
|
||||
if (st)
|
||||
des = xs_list_append(des, st);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue