commit 9eb2f67
grunfink
·
2025-09-13 22:30:00 +0000 UTC
parent 428ae12
mastoapi: Fixed incorrect messages in status query.
1 files changed,
+1,
-1
+1,
-1
1@@ -1767,7 +1767,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 if (valid_status(timeline_get_by_md5(&snac2, v, &msg))) {
3 /* add only posts by the author */
4 if (strcmp(xs_dict_get(msg, "type"), "Note") == 0 &&
5- xs_startswith(xs_dict_get(msg, "id"), snac2.actor)) {
6+ xs_startswith(xs_dict_get(msg, "id"), snac2.actor) && is_msg_public(msg)) {
7 xs *st = mastoapi_status(&snac2, msg);
8
9 if (st)