Mastodon testing

This commit is contained in:
Michael Zhang 2021-11-01 00:52:38 -05:00
parent 50b600b519
commit 81fa0bbb36
6 changed files with 63 additions and 0 deletions

View file

@ -7,3 +7,7 @@ trim_trailing_whitespace = true
charset = utf-8 charset = utf-8
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
[*.json]
indent_size = 2

View file

@ -11,3 +11,15 @@ language = "languages"
endLevel = 4 endLevel = 4
ordered = true ordered = true
startLevel = 2 startLevel = 2
[mediaTypes."application/activitypub"]
suffixes = ["json"]
[outputs]
section = ["HTML", "ActivityPub"]
[outputFormats.ActivityPub]
baseName = "ActivityPub"
mediaType = "application/activitypub"
isPlainText = true

View file

@ -0,0 +1,10 @@
{
"posts": [
{{- range $i, $page := .Pages -}}
{{- if $i -}} , {{- end -}}
{
"title": {{ $page.Title | jsonify }}
}
{{- end -}}
]
}

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Link rel="lrdd" template="https://mzhang.io/.well-known/webfinger?resource={uri}"/>
</XRD>

View file

@ -0,0 +1,16 @@
{
"subject": "acct:blogger@mzhang.io",
"aliases": [],
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://mzhang.io"
},
{
"rel": "self",
"type": "application/activity+json",
"href": "https://mzhang.io/mastodon/user.json"
}
]
}

17
static/mastodon/user.json Normal file
View file

@ -0,0 +1,17 @@
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"id": "https://mzhang.io/mastodon/user.json",
"type": "Person",
"outbox": "https://mzhang.io/posts/activitypub.json",
"name": "Michael Zhang",
"url": "https://mzhang.io",
"attachment": [
{
"type": "PropertyValue",
"name": "hellosu",
"value": "https://osu.ppy.sh/u/2688103"
}
]
}