Skip to content

Instantly share code, notes, and snippets.

@puckipedia
Created November 20, 2017 23:06
Show Gist options
  • Save puckipedia/2b5d0982883208efd6b783666242ccd4 to your computer and use it in GitHub Desktop.
Save puckipedia/2b5d0982883208efd6b783666242ccd4 to your computer and use it in GitHub Desktop.
puckipedia@reimu> curl --data "id=https://twitter.com/_/status/930923373881909248/activity" http://localhost:5000/auth/proxy -vv ~
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 5000 (#0)
> POST /auth/proxy HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/7.56.1
> Content-Length: 59
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 59 out of 59 bytes
< HTTP/1.1 200 OK
< Date: Mon, 20 Nov 2017 23:05:10 GMT
< Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystreams"
< Server: Kestrel
< Content-Length: 2234
<
{
"id": "https://twitter.com/_/status/930923373881909248/activity",
"type": "Create",
"object": {
"id": "https://twitter.com/_/status/930923373881909248",
"type": "Note",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://twitter.com/user/28839131",
"https://twitter.com/user/630517931/followers"
],
"attributedTo": {
"id": "https://twitter.com/user/630517931",
"type": "Person",
"endpoints": {
"sharedInbox": "https://twitter.com/inbox"
},
"followers": "https://twitter.com/user/630517931/followers",
"following": "https://twitter.com/user/630517931/following",
"outbox": "https://twitter.com/user/630517931/outbox",
"inbox": "https://twitter.com/inbox",
"image": {
"type": "Image",
"url": "https://pbs.twimg.com/profile_banners/630517931/1491756434",
"mediaType": "image/jpeg"
},
"icon": {
"type": "Image",
"url": "https://pbs.twimg.com/profile_images/851113899126640641/f95Vzvni_normal.jpg",
"mediaType": "image/jpeg"
},
"manuallyApprovesFollowers": false,
"summary": "GNU (MediaGoblin, 8sync, Guile, Guix) hacker, ActivityPub co-editor, occasional artist. https://t.co/HjTEuikoBH",
"preferredUsername": "dustyweb",
"name": "Christopher Webber"
},
"sensitive": false,
"tag": [
{
"type": "Mention",
"name": "@puckipedia",
"href": "https://twitter.com/user/28839131"
}
],
"content": "As I said earlier, ActivityPub is a team effort... and you could hardly ask for a better teammate than <a href=\"https://twitter.com/user/28839131\">@puckipedia</a>! They are making <a href=\"https://t.co/wfHgoVPSYY\">activitypub.rocks/implementation#</a> light up like a christmas tree!\n\nGo Puck go!"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://twitter.com/user/28839131",
"https://twitter.com/user/630517931/followers"
],
"as:published": "Wed Nov 15 22:20:02 +0000 2017",
"actor": "https://twitter.com/user/630517931",
"@context": [
"https://www.w3.org/ns/activitystreams",
"http://home.empw.nl:5000/render/context"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment