commit cdd74c8
grunfink
·
2025-09-03 20:30:40 +0000 UTC
parent 5693c81
Ensure the outbox does not include non-public posts.
1 files changed,
+4,
-2
+4,
-2
1@@ -3516,8 +3516,10 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
2 const char *id = xs_dict_get(i, "id");
3
4 if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) {
5- xs *c_msg = msg_create(&snac, i);
6- list = xs_list_append(list, c_msg);
7+ if (is_msg_public(i)) {
8+ xs *c_msg = msg_create(&snac, i);
9+ list = xs_list_append(list, c_msg);
10+ }
11 }
12 }
13 }