Remove some Mastodon-specific extensions in Actor response

parent 6d97706c
......@@ -23,7 +23,7 @@ const app = express(feathers())
app.use(detective({includeHeaders: true, includeBody: true, includeQueryString: true}))
// Hardcoded LocalTunnel URL for testing federation.
const localDomain = 'apub.localtunnel.me'
const localDomain = 'apub3.localtunnel.me'
// Load app configuration
app.configure(configuration())
......@@ -126,19 +126,7 @@ app.use('/', function (req, res, next) {
const sampleActorActivityStreamObject = JSON.parse(`{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"manuallyApprovesFollowers":"as:manuallyApprovesFollowers",
"sensitive":"as:sensitive",
"hashtag":"as:Hashtag",
"ostatus":"http://ostatus.org#",
"atomUri":"ostatus:atomUri",
"inReplyToAtomUri":"ostatus:inReplyToAtomUri",
"conversation":"ostatus:conversation",
"toot":"http://joinmastodon.org/ns#",
"Emoji":"toot:Emoji"
}
"https://www.w3.org/ns/activitystreams"
],
"type": "Person",
"id": "https://${localDomain}/",
......@@ -150,7 +138,6 @@ app.use('/', function (req, res, next) {
"name": "Aral Balkan",
"summary": "Just a guy.",
"url": "https://${localDomain}/",
"manuallyApprovesFollowers": false,
"icon": {
"type": "Image",
"mediaType": "image/jpeg",
......@@ -166,7 +153,7 @@ app.use('/', function (req, res, next) {
},
"publicKey": {
"owner": "https://${localDomain}/",
"id": "https://${localDomain}/#main-key",
"id": "https://${localDomain}/publickey",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8NY/rAs24sgBWrTFiE0ovxSbv9ekts8NM109W6WM3s30SpAAmK/dPVzmMLeZxrsHaJVOFOCuSe2X2vVHUkYySMDokdIUWfHfGf+hpied8QPVJopoZq8cv3zz6HC8j7RFUaQYQMYi5JpdF7z9y0ZpI8bvRxWH2TPchJQe0uDk8Jvdlcqm/FfQIC6rQyLgLnX2/kRs0e7TeYTmMlXvtbmUqbtBd9FHIA0Kz9xyPm310N2E0Ca/pbDRYEylw5roRN1FI3teov3dR3Jxoy02iwHTeI9FOUF4K/MaS+ebZGjlI7ArJa4zHQ0gqslFlNLbi+4KdOI6CQKyjBZqRNBGlXBD8QIDAQAB-----END PUBLIC KEY-----"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment