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",
"https://w3id.org/security/v1",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive",
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
"alsoKnownAs": {
"@id": "as:alsoKnownAs",
"@type": "@id"
},
"movedTo": {
"@id": "as:movedTo",
"@type": "@id"
},
"toot": "http://joinmastodon.org/ns#",
"featured": {
"@id": "toot:featured",
"@type": "@id"
},
"Emoji": "toot:Emoji",
"blurhash": "toot:blurhash",
"votersCount": "toot:votersCount",
"schema": "http://schema.org#",
"PropertyValue": "schema:PropertyValue",
"value": "schema:value",
"ostatus": "http://ostatus.org#",
"conversation": "ostatus:conversation"
}
],
"type": "Note",
"id": "https://microwords.goodevilgenius.org/o/c6cdc6ae299b41649fe7dbefbb45d941",
"attributedTo": "https://microwords.goodevilgenius.org",
"content": "<p>Hey, <span class=\"h-card\"><a href=\"https://hexa.ninja/\" class=\"u-url mention\">@t@hexa.ninja</a></span>. I was trying to find a way to customize what showed up in the Stream for microblog, when I found this code:</p>\n<div class=\"highlight\"><pre><span></span><span class=\"k\">try</span><span class=\"p\">:</span>\n <span class=\"kn\">from</span> <span class=\"nn\">data.stream</span> <span class=\"kn\">import</span> <span class=\"p\">(</span> <span class=\"c1\"># type: ignore # noqa: F401, E501</span>\n <span class=\"n\">custom_stream_visibility_callback</span><span class=\"p\">,</span>\n <span class=\"p\">)</span>\n\n <span class=\"n\">stream_visibility_callback</span> <span class=\"o\">=</span> <span class=\"n\">custom_stream_visibility_callback</span>\n</pre></div>\n\n<p>It looks like there is supposed to be a way to customize it by writing this <code>custom_stream_visibility_callback</code>.</p>\n<p>I think what I'm supposed to do is create a file at <code>data/stream.py</code>, and basically put the function in there, modeling it after the <code>default_stream_visibility_callback</code> in <code>app/customization.py</code>.</p>\n<p>Am I understanding that correctly? I couldn't find any mention of this in the docs.</p>\n",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://microwords.goodevilgenius.org/followers",
"https://hexa.ninja"
],
"published": "2023-01-06T17:49:41Z",
"context": "https://microwords.goodevilgenius.org/contexts/5e3a751e05a9451f8729887ec37f7f75",
"conversation": "https://microwords.goodevilgenius.org/contexts/5e3a751e05a9451f8729887ec37f7f75",
"url": "https://microwords.goodevilgenius.org/o/c6cdc6ae299b41649fe7dbefbb45d941",
"tag": [
{
"type": "Mention",
"href": "https://hexa.ninja",
"name": "@t@hexa.ninja"
}
],
"summary": null,
"inReplyTo": null,
"sensitive": false,
"attachment": []
}