diff options
| author | 2025-09-14 00:05:51 +0200 | |
|---|---|---|
| committer | 2025-09-14 00:05:51 +0200 | |
| commit | 428ae12639e044df129cd5cb96e394c311e27d38 (patch) | |
| tree | 48e93082449c92a7ea8e92ff5340373293008a5f /activitypub.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-428ae12639e044df129cd5cb96e394c311e27d38.tar.gz snac2-428ae12639e044df129cd5cb96e394c311e27d38.tar.xz snac2-428ae12639e044df129cd5cb96e394c311e27d38.zip | |
Don't use # anchors in the reply paging, as Misskey seems to dislike them.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index ce3be35..05c3fb1 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1369,8 +1369,8 @@ xs_dict *msg_replies(snac *user, const char *id, int fill) | |||
| 1369 | /* creates a CollectionPage with replies of id */ | 1369 | /* creates a CollectionPage with replies of id */ |
| 1370 | { | 1370 | { |
| 1371 | xs *r_id = xs_replace(id, "/p/", "/r/"); | 1371 | xs *r_id = xs_replace(id, "/p/", "/r/"); |
| 1372 | xs *r_idp = xs_fmt("%s#page", r_id); | 1372 | xs *r_idp = xs_fmt("%s?page=true", r_id); |
| 1373 | xs *r_idh = xs_fmt("%s#hdr", r_id); | 1373 | xs *r_idh = xs_fmt("%s", r_id); |
| 1374 | 1374 | ||
| 1375 | xs_dict *msg = msg_base(user, "CollectionPage", r_idp, NULL, NULL, NULL); | 1375 | xs_dict *msg = msg_base(user, "CollectionPage", r_idp, NULL, NULL, NULL); |
| 1376 | 1376 | ||
| @@ -2012,7 +2012,7 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, | |||
| 2012 | /* create the replies object */ | 2012 | /* create the replies object */ |
| 2013 | xs *replies = xs_dict_new(); | 2013 | xs *replies = xs_dict_new(); |
| 2014 | xs *r_id = xs_replace(id, "/p/", "/r/"); | 2014 | xs *r_id = xs_replace(id, "/p/", "/r/"); |
| 2015 | xs *h_id = xs_fmt("%s#hdr", r_id); | 2015 | xs *h_id = xs_fmt("%s", r_id); |
| 2016 | xs *rp = msg_replies(snac, id, 0); | 2016 | xs *rp = msg_replies(snac, id, 0); |
| 2017 | 2017 | ||
| 2018 | replies = xs_dict_set(replies, "id", h_id); | 2018 | replies = xs_dict_set(replies, "id", h_id); |