Mastodon post IDs are incorrect
Describe the bug
$ curl -H "Accept: application/activity+json" https://lespoesiesdheloise.fr/@heloise/posts/96118a30-3154-4ad1-ab09-997fe53eea21/replies?page=1
[…]
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://enfants-et-famille.podcasts.chat/users/Hortense/posts/106058193032651449",
"type": "Note",
"content": "<a href=\"https://lespoesiesdheloise.fr/@heloise/episodes/les-poesies-d-heloise\">Les Poésies d’Héloïse</a><br/><a href=\"https://lespoesiesdheloise.fr/@heloise\">@heloise</a> Heureuse de retrouver les Poésies d'Héloïse sur Mastodon ! 😍",
"published": "2021-04-13T13:13:15+00:00",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://lespoesiesdheloise.fr/@heloise"
],
"cc": [
"https://enfants-et-famille.podcasts.chat/users/Hortense/followers"
],
"attributedTo": "https://enfants-et-famille.podcasts.chat/users/Hortense",
"inReplyTo": "https://lespoesiesdheloise.fr/@heloise/posts/96118a30-3154-4ad1-ab09-997fe53eea21",
"replies": "https://lespoesiesdheloise.fr/@Hortense/posts/4553a90f-99fc-40b0-9552-9d9ea210e0bb/replies"
}
[…]
Message ID is https://enfants-et-famille.podcasts.chat/users/Hortense/posts/106058193032651449
(which is 404) but it should be https://enfants-et-famille.podcasts.chat/web/statuses/106058193032651449
.
Note: Wrong ID is stored in the database, table cp_fediverse_posts
, field uri
.
Steps to reproduce
- Post a new episode,
- Answer to that episode from Mastodon,
- Check the post from https://podcastindex.org/
Expected behavior
Answers posted from Mastodon should be visible.
Actual behavior
Mastodon message ID are …/users/user_name/posts/…
but they should be …/web/statuses/…
.
Relevant logs and/or screenshots
PodcastIndex cannot show Mastodon comments:
Context
- Castopod: 1.1.2
- OS: Ubuntu server 22.04
- Browser: Any
- Web server: NGinx
Possible fixes
n/a
Edited by Benjamin Bellamy