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",
"blurhash": "toot:blurhash",
"focalPoint": {
"@container": "@list",
"@id": "toot:focalPoint"
},
"Hashtag": "as:Hashtag"
}
],
"id": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2025-02-13T16:17:32Z",
"url": "https://mastodon.bsd.cafe/@Dendrobatus_Azureus/113997476837192081",
"attributedTo": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/followers"
],
"sensitive": false,
"atomUri": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081",
"inReplyToAtomUri": null,
"conversation": "tag:bsd.cafe,2025-02-13:objectId=13265250:objectType=Conversation",
"content": "<p>Do you remember me talking about this wonderful article? the one where you are taught in detail with source snippets how Linux goes bye-bye when it goes to sleep?<br />The article has so much in-depth details that it takes a lot of time, considerable inteligencia & knowledge to process. Contrary to others I will not only say it, I will explicitly state it is fascinating and a heavy read.</p><p>Take your time to process the article; it's worth learning this in depth, in miniatures detail, all the way down to the sources, so you know what goes on, when the power management or your Linux powered VM, or Linux powered Hardware machine, goes down, hard, inexplicable:</p><p>To you it will become explainable!</p><p>🖋️ <a href=\"https://mastodon.bsd.cafe/tags/bash\" class=\"mention hashtag\" rel=\"tag\">#<span>bash</span></a> <a href=\"https://mastodon.bsd.cafe/tags/sh\" class=\"mention hashtag\" rel=\"tag\">#<span>sh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/zsh\" class=\"mention hashtag\" rel=\"tag\">#<span>zsh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/ksh\" class=\"mention hashtag\" rel=\"tag\">#<span>ksh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/csh\" class=\"mention hashtag\" rel=\"tag\">#<span>csh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/tsh\" class=\"mention hashtag\" rel=\"tag\">#<span>tsh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/PowerManagement\" class=\"mention hashtag\" rel=\"tag\">#<span>PowerManagement</span></a> <a href=\"https://mastodon.bsd.cafe/tags/sleep\" class=\"mention hashtag\" rel=\"tag\">#<span>sleep</span></a> <a href=\"https://mastodon.bsd.cafe/tags/hibernate\" class=\"mention hashtag\" rel=\"tag\">#<span>hibernate</span></a> <a href=\"https://mastodon.bsd.cafe/tags/Linux\" class=\"mention hashtag\" rel=\"tag\">#<span>Linux</span></a> <a href=\"https://mastodon.bsd.cafe/tags/POSIX\" class=\"mention hashtag\" rel=\"tag\">#<span>POSIX</span></a> <a href=\"https://mastodon.bsd.cafe/tags/FOSS\" class=\"mention hashtag\" rel=\"tag\">#<span>FOSS</span></a> <a href=\"https://mastodon.bsd.cafe/tags/100daysofCode\" class=\"mention hashtag\" rel=\"tag\">#<span>100daysofCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/640DaysOfCode\" class=\"mention hashtag\" rel=\"tag\">#<span>640DaysOfCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/1024DaysOfCode\" class=\"mention hashtag\" rel=\"tag\">#<span>1024DaysOfCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/programming\" class=\"mention hashtag\" rel=\"tag\">#<span>programming</span></a> <a href=\"https://mastodon.bsd.cafe/tags/GCC\" class=\"mention hashtag\" rel=\"tag\">#<span>GCC</span></a> <a href=\"https://mastodon.bsd.cafe/tags/gplusplus\" class=\"mention hashtag\" rel=\"tag\">#<span>gplusplus</span></a> <a href=\"https://mastodon.bsd.cafe/tags/gdb\" class=\"mention hashtag\" rel=\"tag\">#<span>gdb</span></a> </p><p><a href=\"https://tookmund.com/2024/09/hibernation-preparation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">tookmund.com/2024/09/hibernati</span><span class=\"invisible\">on-preparation</span></a></p>",
"contentMap": {
"en": "<p>Do you remember me talking about this wonderful article? the one where you are taught in detail with source snippets how Linux goes bye-bye when it goes to sleep?<br />The article has so much in-depth details that it takes a lot of time, considerable inteligencia & knowledge to process. Contrary to others I will not only say it, I will explicitly state it is fascinating and a heavy read.</p><p>Take your time to process the article; it's worth learning this in depth, in miniatures detail, all the way down to the sources, so you know what goes on, when the power management or your Linux powered VM, or Linux powered Hardware machine, goes down, hard, inexplicable:</p><p>To you it will become explainable!</p><p>🖋️ <a href=\"https://mastodon.bsd.cafe/tags/bash\" class=\"mention hashtag\" rel=\"tag\">#<span>bash</span></a> <a href=\"https://mastodon.bsd.cafe/tags/sh\" class=\"mention hashtag\" rel=\"tag\">#<span>sh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/zsh\" class=\"mention hashtag\" rel=\"tag\">#<span>zsh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/ksh\" class=\"mention hashtag\" rel=\"tag\">#<span>ksh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/csh\" class=\"mention hashtag\" rel=\"tag\">#<span>csh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/tsh\" class=\"mention hashtag\" rel=\"tag\">#<span>tsh</span></a> <a href=\"https://mastodon.bsd.cafe/tags/PowerManagement\" class=\"mention hashtag\" rel=\"tag\">#<span>PowerManagement</span></a> <a href=\"https://mastodon.bsd.cafe/tags/sleep\" class=\"mention hashtag\" rel=\"tag\">#<span>sleep</span></a> <a href=\"https://mastodon.bsd.cafe/tags/hibernate\" class=\"mention hashtag\" rel=\"tag\">#<span>hibernate</span></a> <a href=\"https://mastodon.bsd.cafe/tags/Linux\" class=\"mention hashtag\" rel=\"tag\">#<span>Linux</span></a> <a href=\"https://mastodon.bsd.cafe/tags/POSIX\" class=\"mention hashtag\" rel=\"tag\">#<span>POSIX</span></a> <a href=\"https://mastodon.bsd.cafe/tags/FOSS\" class=\"mention hashtag\" rel=\"tag\">#<span>FOSS</span></a> <a href=\"https://mastodon.bsd.cafe/tags/100daysofCode\" class=\"mention hashtag\" rel=\"tag\">#<span>100daysofCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/640DaysOfCode\" class=\"mention hashtag\" rel=\"tag\">#<span>640DaysOfCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/1024DaysOfCode\" class=\"mention hashtag\" rel=\"tag\">#<span>1024DaysOfCode</span></a> <a href=\"https://mastodon.bsd.cafe/tags/programming\" class=\"mention hashtag\" rel=\"tag\">#<span>programming</span></a> <a href=\"https://mastodon.bsd.cafe/tags/GCC\" class=\"mention hashtag\" rel=\"tag\">#<span>GCC</span></a> <a href=\"https://mastodon.bsd.cafe/tags/gplusplus\" class=\"mention hashtag\" rel=\"tag\">#<span>gplusplus</span></a> <a href=\"https://mastodon.bsd.cafe/tags/gdb\" class=\"mention hashtag\" rel=\"tag\">#<span>gdb</span></a> </p><p><a href=\"https://tookmund.com/2024/09/hibernation-preparation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">tookmund.com/2024/09/hibernati</span><span class=\"invisible\">on-preparation</span></a></p>"
},
"updated": "2025-02-13T16:20:54Z",
"attachment": [
{
"type": "Document",
"mediaType": "image/png",
"url": "https://media.bsd.cafe/bsdmmedia01/media_attachments/files/113/997/466/530/257/618/original/d90251678d16b91d.png",
"name": "The code snippet is from the file \"kernel/power/main.c:688\". It defines a static function named \"decode_state\" that takes a \"con\" argument. Inside the function, there are preprocessor directives using \"#ifdef CONFIG_SUSPEND\". It declares variables \"state\" of type \"suspend_state_t\", a character pointer \"p\", and an integer \"len\". The code uses \"memchr\" to find a newline character in a buffer and calculates the length. There's a comment \"/* Check hibernation first. */\" and an if statement that checks the length and a string prefix, potentially returning \"PM_SUSPEND_MAX\". Another \"#ifdef CONFIG_SUSPEND\" section includes a for loop that iterates through suspend states, comparing labels and lengths, and potentially returning the \"state\". Finally, the function returns \"PM_SUSPEND_ON\". Below the code, there's a comment stating: \"Could we have figured this out just via function names? Sure, but this way we\". ",
"blurhash": "U04ej0tR9F%MNdtRxuM{~qxvj?t7R-WF%Mof",
"focalPoint": [
-0.22789115,
0.30781013
],
"width": 720,
"height": 1600
}
],
"tag": [
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/bash",
"name": "#bash"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/sh",
"name": "#sh"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/zsh",
"name": "#zsh"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/ksh",
"name": "#ksh"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/csh",
"name": "#csh"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/tsh",
"name": "#tsh"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/powermanagement",
"name": "#powermanagement"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/sleep",
"name": "#sleep"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/hibernate",
"name": "#hibernate"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/linux",
"name": "#linux"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/posix",
"name": "#posix"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/foss",
"name": "#foss"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/100daysofcode",
"name": "#100daysofcode"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/640daysofcode",
"name": "#640daysofcode"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/1024daysofcode",
"name": "#1024daysofcode"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/programming",
"name": "#programming"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/gcc",
"name": "#gcc"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/gplusplus",
"name": "#gplusplus"
},
{
"type": "Hashtag",
"href": "https://mastodon.bsd.cafe/tags/gdb",
"name": "#gdb"
}
],
"replies": {
"id": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081/replies?only_other_accounts=true&page=true",
"partOf": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081/replies",
"items": []
}
},
"likes": {
"id": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081/likes",
"type": "Collection",
"totalItems": 8
},
"shares": {
"id": "https://mastodon.bsd.cafe/users/Dendrobatus_Azureus/statuses/113997476837192081/shares",
"type": "Collection",
"totalItems": 5
}
}