Skip to content

Instantly share code, notes, and snippets.

@davidpeach
Created October 23, 2018 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpeach/b78b8d80cf5c17fd2613d7cc138c8cde to your computer and use it in GitHub Desktop.
Save davidpeach/b78b8d80cf5c17fd2613d7cc138c8cde to your computer and use it in GitHub Desktop.
An example follow request sent from mastodon to my test ActivityPub site
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"manuallyApprovesFollowers":"as:manuallyApprovesFollowers",
"sensitive":"as:sensitive",
"movedTo":
{
"@id":"as:movedTo",
"@type":"@id"
},
"Hashtag":"as:Hashtag",
"ostatus":"http://ostatus.org#",
"atomUri":"ostatus:atomUri",
"inReplyToAtomUri":"ostatus:inReplyToAtomUri",
"conversation":"ostatus:conversation",
"toot":"http://joinmastodon.org/ns#",
"Emoji":"toot:Emoji",
"focalPoint":
{
"@container":"@list",
"@id":"toot:focalPoint"
},
"featured":
{
"@id":"toot:featured",
"@type":"@id"
},
"schema":"http://schema.org#",
"PropertyValue":"schema:PropertyValue",
"value":"schema:value"
}
],
"id":"https://mastodon.social/36736198-93da-40de-8684-ce5125e3365f",
"type":"Follow",
"actor":"https://mastodon.social/users/davidpeach",
"object":"https://apone.davidpeach.co.uk/actor",
"signature":
{
"type":"RsaSignature2017",
"creator":"https://mastodon.social/users/davidpeach#main-key",
"created":"2018-10-23T19:04:06Z",
"signatureValue":"yicfugdBl3CawIbHE3wcDuMa4pVj/iwAUx2CcraxNBaLh9ScnT3buP+k63Q9tmQUwn6Scs/16MTk/5AwJ7IxtVvdZmoLbBUkIDcaiqnLxNvduxrgvvheXOd0XSXKrvKnSz35fLARMEp9J/b5HrvGfGpyNWepJgJx3U6IZL8OorGCRuhKCC81R8X/g2tBzLzwqNWiMgoGfknsbr+5YFNpIhmGZx0bhRk/ECi+Vd9UhC7tXXdu4qbD7YHMBED8ahUY9pMeJDP0LOfL8eddVmz75lKzd0/gwuLNpUw0ewhvlMaZpEQlh0mjb0pWPfhzWlT7hLL+rUePAc58Py1WIlfeYQ=="
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment