diff options
author | default <nobody@localhost> | 2023-08-18 18:21:52 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-18 18:21:52 +0200 |
commit | 46cfc37f2bfe03baa4d6feadf7155483c8797459 (patch) | |
tree | f2e507d0a26cc5ec5786a2ffdf083a2eaff54a13 | |
parent | 8b176292d60975f498a5a1564ab66393a9f4fd5b (diff) |
Be more strict when serving note objects.
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index d4944ec..a48749d 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2059,6 +2059,10 @@ int activitypub_get_handler(const xs_dict *req, const char *q_path, xs *id = xs_fmt("%s/%s", snac.actor, p_path); status = object_get(id, &msg); + + /* don't return non-public objects */ + if (valid_status(status) && !is_msg_public(msg)) + status = 404; } else status = 404; |