summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-14 00:30:00 +0200
committerGravatar grunfink2025-09-14 00:30:00 +0200
commit9eb2f672f9b1d26559c2f83596e8d80a352d7611 (patch)
tree7d0b88a5fdbb771551766c140c49fb4877579417
parentDon't use # anchors in the reply paging, as Misskey seems to dislike them. (diff)
downloadsnac2-9eb2f672f9b1d26559c2f83596e8d80a352d7611.tar.gz
snac2-9eb2f672f9b1d26559c2f83596e8d80a352d7611.tar.xz
snac2-9eb2f672f9b1d26559c2f83596e8d80a352d7611.zip
mastoapi: Fixed incorrect messages in status query.
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 568426b..e77d15f 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1767,7 +1767,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
1767 if (valid_status(timeline_get_by_md5(&snac2, v, &msg))) { 1767 if (valid_status(timeline_get_by_md5(&snac2, v, &msg))) {
1768 /* add only posts by the author */ 1768 /* add only posts by the author */
1769 if (strcmp(xs_dict_get(msg, "type"), "Note") == 0 && 1769 if (strcmp(xs_dict_get(msg, "type"), "Note") == 0 &&
1770 xs_startswith(xs_dict_get(msg, "id"), snac2.actor)) { 1770 xs_startswith(xs_dict_get(msg, "id"), snac2.actor) && is_msg_public(msg)) {
1771 xs *st = mastoapi_status(&snac2, msg); 1771 xs *st = mastoapi_status(&snac2, msg);
1772 1772
1773 if (st) 1773 if (st)