mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Be more strict when serving note objects.
This commit is contained in:
parent
8b176292d6
commit
46cfc37f2b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue