commit 428ae12
grunfink
·
2025-09-13 22:05:51 +0000 UTC
parent 851ecab
Don't use # anchors in the reply paging, as Misskey seems to dislike them.
1 files changed,
+3,
-3
+3,
-3
1@@ -1369,8 +1369,8 @@ xs_dict *msg_replies(snac *user, const char *id, int fill)
2 /* creates a CollectionPage with replies of id */
3 {
4 xs *r_id = xs_replace(id, "/p/", "/r/");
5- xs *r_idp = xs_fmt("%s#page", r_id);
6- xs *r_idh = xs_fmt("%s#hdr", r_id);
7+ xs *r_idp = xs_fmt("%s?page=true", r_id);
8+ xs *r_idh = xs_fmt("%s", r_id);
9
10 xs_dict *msg = msg_base(user, "CollectionPage", r_idp, NULL, NULL, NULL);
11
12@@ -2012,7 +2012,7 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
13 /* create the replies object */
14 xs *replies = xs_dict_new();
15 xs *r_id = xs_replace(id, "/p/", "/r/");
16- xs *h_id = xs_fmt("%s#hdr", r_id);
17+ xs *h_id = xs_fmt("%s", r_id);
18 xs *rp = msg_replies(snac, id, 0);
19
20 replies = xs_dict_set(replies, "id", h_id);