diff options
| author | 2025-09-03 22:30:40 +0200 | |
|---|---|---|
| committer | 2025-09-03 22:30:40 +0200 | |
| commit | cdd74c8d41fc018f0bf63552183cda4c3d577a4e (patch) | |
| tree | 58a613d642c443e76547f1ca45482d88ee409de4 | |
| parent | Always add a user's posts to the public timeline, even if it's not really pub... (diff) | |
| download | penes-snac2-cdd74c8d41fc018f0bf63552183cda4c3d577a4e.tar.gz penes-snac2-cdd74c8d41fc018f0bf63552183cda4c3d577a4e.tar.xz penes-snac2-cdd74c8d41fc018f0bf63552183cda4c3d577a4e.zip | |
Ensure the outbox does not include non-public posts.
| -rw-r--r-- | activitypub.c | 6 |
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, | |||
| 3516 | const char *id = xs_dict_get(i, "id"); | 3516 | const char *id = xs_dict_get(i, "id"); |
| 3517 | 3517 | ||
| 3518 | if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) { | 3518 | if (type && id && strcmp(type, "Note") == 0 && xs_startswith(id, snac.actor)) { |
| 3519 | xs *c_msg = msg_create(&snac, i); | 3519 | if (is_msg_public(i)) { |
| 3520 | list = xs_list_append(list, c_msg); | 3520 | xs *c_msg = msg_create(&snac, i); |
| 3521 | list = xs_list_append(list, c_msg); | ||
| 3522 | } | ||
| 3521 | } | 3523 | } |
| 3522 | } | 3524 | } |
| 3523 | } | 3525 | } |