diff options
| -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, | |||
| 2059 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); | 2059 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); |
| 2060 | 2060 | ||
| 2061 | status = object_get(id, &msg); | 2061 | status = object_get(id, &msg); |
| 2062 | |||
| 2063 | /* don't return non-public objects */ | ||
| 2064 | if (valid_status(status) && !is_msg_public(msg)) | ||
| 2065 | status = 404; | ||
| 2062 | } | 2066 | } |
| 2063 | else | 2067 | else |
| 2064 | status = 404; | 2068 | status = 404; |