mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Delete the _snac field in outbox.
This commit is contained in:
parent
32661d2be7
commit
03b0e105b5
@ -761,7 +761,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
|
|||||||
else
|
else
|
||||||
if (strcmp(p_path, "outbox") == 0) {
|
if (strcmp(p_path, "outbox") == 0) {
|
||||||
xs *id = xs_fmt("%s/outbox", snac.actor);
|
xs *id = xs_fmt("%s/outbox", snac.actor);
|
||||||
xs *elems = local_list(&snac, 40);
|
xs *elems = local_list(&snac, 20);
|
||||||
xs *list = xs_list_new();
|
xs *list = xs_list_new();
|
||||||
msg = msg_collection(&snac, id);
|
msg = msg_collection(&snac, id);
|
||||||
char *p, *v;
|
char *p, *v;
|
||||||
@ -772,8 +772,10 @@ int activitypub_get_handler(d_char *req, char *q_path,
|
|||||||
char *type = xs_dict_get(i, "type");
|
char *type = xs_dict_get(i, "type");
|
||||||
char *id = xs_dict_get(i, "id");
|
char *id = xs_dict_get(i, "id");
|
||||||
|
|
||||||
if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor))
|
if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) {
|
||||||
|
i = xs_dict_del(i, "_snac");
|
||||||
list = xs_list_append(list, i);
|
list = xs_list_append(list, i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* replace the 'orderedItems' with the latest posts */
|
/* replace the 'orderedItems' with the latest posts */
|
||||||
|
Loading…
Reference in New Issue
Block a user