A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"conversation": "ostatus:conversation",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"votersCount": "toot:votersCount"
}
],
"id": "https://ruby.social/users/nick_evans/statuses/109841691373036569",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2023-02-10T17:46:38Z",
"url": "https://ruby.social/@nick_evans/109841691373036569",
"attributedTo": "https://ruby.social/users/nick_evans",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://ruby.social/users/nick_evans/followers",
"https://ruby.social/users/joeldrapper"
],
"sensitive": false,
"atomUri": "https://ruby.social/users/nick_evans/statuses/109841691373036569",
"inReplyToAtomUri": null,
"conversation": "tag:ruby.social,2023-02-10:objectId=16898311:objectType=Conversation",
"content": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://ruby.social/@joeldrapper\" class=\"u-url mention\">@<span>joeldrapper</span></a></span> Whether or not that makes it into ruby, it works very well in your use case IMO. I occasionally use refinements for code like that, where it makes code easier to read in the local use case. E.g, this Regexp#- refinement <a href=\"https://github.com/ruby/net-imap/blob/e5aeeb01e29357267da67e6a4f04ef32e2e0db2f/lib/net/imap/response_parser.rb#L63-L68\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">github.com/ruby/net-imap/blob/</span><span class=\"invisible\">e5aeeb01e29357267da67e6a4f04ef32e2e0db2f/lib/net/imap/response_parser.rb#L63-L68</span></a> wouldn't be the right implementation for stdlib, but it works well here, IMO.</p>",
"contentMap": {
"en": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://ruby.social/@joeldrapper\" class=\"u-url mention\">@<span>joeldrapper</span></a></span> Whether or not that makes it into ruby, it works very well in your use case IMO. I occasionally use refinements for code like that, where it makes code easier to read in the local use case. E.g, this Regexp#- refinement <a href=\"https://github.com/ruby/net-imap/blob/e5aeeb01e29357267da67e6a4f04ef32e2e0db2f/lib/net/imap/response_parser.rb#L63-L68\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">github.com/ruby/net-imap/blob/</span><span class=\"invisible\">e5aeeb01e29357267da67e6a4f04ef32e2e0db2f/lib/net/imap/response_parser.rb#L63-L68</span></a> wouldn't be the right implementation for stdlib, but it works well here, IMO.</p>"
},
"attachment": [],
"tag": [
{
"type": "Mention",
"href": "https://ruby.social/users/joeldrapper",
"name": "@joeldrapper"
}
],
"replies": {
"id": "https://ruby.social/users/nick_evans/statuses/109841691373036569/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://ruby.social/users/nick_evans/statuses/109841691373036569/replies?only_other_accounts=true&page=true",
"partOf": "https://ruby.social/users/nick_evans/statuses/109841691373036569/replies",
"items": []
}
},
"likes": {
"id": "https://ruby.social/users/nick_evans/statuses/109841691373036569/likes",
"type": "Collection",
"totalItems": 1
},
"shares": {
"id": "https://ruby.social/users/nick_evans/statuses/109841691373036569/shares",
"type": "Collection",
"totalItems": 0
}
}