aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-09-03 22:30:40 +0200
committergrunfink <grunfink@comam.es>2025-09-03 22:30:40 +0200
commitcdd74c8d41fc018f0bf63552183cda4c3d577a4e (patch)
tree58a613d642c443e76547f1ca45482d88ee409de4 /activitypub.c
parent5693c81d691f3fd68659ff30309a1402e2a6356a (diff)
Ensure the outbox does not include non-public posts.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 2c0aa98..d699fee 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -3516,8 +3516,10 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path,
const char *id = xs_dict_get(i, "id");
if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) {
- xs *c_msg = msg_create(&snac, i);
- list = xs_list_append(list, c_msg);
+ if (is_msg_public(i)) {
+ xs *c_msg = msg_create(&snac, i);
+ list = xs_list_append(list, c_msg);
+ }
}
}
}