diff options
| -rw-r--r-- | activitypub.c | 6 | ||||
| -rw-r--r-- | data.c | 3 |
2 files changed, 7 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 | } |
| @@ -1463,6 +1463,9 @@ void timeline_update_indexes(snac *snac, const char *id) | |||
| 1463 | else | 1463 | else |
| 1464 | srv_debug(1, xs_fmt("Not added to public instance index %s", id)); | 1464 | srv_debug(1, xs_fmt("Not added to public instance index %s", id)); |
| 1465 | } | 1465 | } |
| 1466 | else | ||
| 1467 | /* also add it to public, it will be discarded later */ | ||
| 1468 | object_user_cache_add(snac, id, "public"); | ||
| 1466 | } | 1469 | } |
| 1467 | } | 1470 | } |
| 1468 | } | 1471 | } |