test outbox

This commit is contained in:
lesion
2019-07-30 19:10:58 +02:00
parent 155079f3fb
commit 8f7f555647
2 changed files with 11 additions and 2 deletions

View File

@@ -60,7 +60,16 @@ module.exports = {
first: {
id: `${config.baseurl}/federation/u/${name}/outbox`,
type: 'OrderedCollectionPage',
orderedItems: [{content: 'ciao'}]
orderedItems: [{
id: `${config.baseurl}/federation/m/12341234`,
type: 'Note',
url: `${config.baseurl}/federation/m/12341234`,
published: new Date(),
attributedTo: `${config.baseurl}/federation/u/${name}`,
sensitive: false,
to: ['https://www.w3.org/ns/activitystreams#Public'],
content: 'prova'
}]
}
}
return res.json(ret)