shuttlecraft icon indicating copy to clipboard operation
shuttlecraft copied to clipboard

Make /notes/:guid work better with other clients

Open ringtailsoftware opened this issue 2 years ago • 4 comments

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

ringtailsoftware avatar Jan 13 '23 11:01 ringtailsoftware

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!

benbrown avatar Jan 13 '23 15:01 benbrown

@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?

benbrown avatar Jan 13 '23 23:01 benbrown

@ringtailsoftware any perspective on this?

benbrown avatar Jan 24 '23 04:01 benbrown

I had thought it fixed search, but perhaps not. Maybe search was working because the server had already seen the post.

ringtailsoftware avatar Jan 24 '23 10:01 ringtailsoftware