shuttlecraft
shuttlecraft copied to clipboard
Make /notes/:guid work better with other clients
Return HTTP 404 for /note/non-existent-guid Return raw ActivityPub JSON for /note/:guid when HTTP Accept header contains "application/activity+json", so clients can get the raw document and render it how they want. For example, this allows a /note/:guid link to be pasted into the search box on a Mastodon instance
Interesting. There is already a /n/:guid url that is supposed to be the canonical json url, but I would rather there just one and have it be this one. So great!
@ringtailsoftware This works as expected, but I am not able to get it to load in the Mastodon search results.
I am watching the traffic - I see it return the JSON as expected to the incoming request from Mastodon. But Mastodon returns no results in the search.
Any ideas?
@ringtailsoftware any perspective on this?
I had thought it fixed search, but perhaps not. Maybe search was working because the server had already seen the post.