Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
ed53c348
Commit
ed53c348
authored
Jul 30, 2019
by
les
Browse files
minor on outbox
parent
9b06ac25
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/federation/users.js
View file @
ed53c348
...
...
@@ -46,9 +46,22 @@ module.exports = {
orderedItems
:
user
.
followers
,
}
}
res
.
json
(
ret
)
res
.
json
(
ret
)
},
outbox
(
req
,
res
)
{
const
name
=
req
.
params
.
name
if
(
!
name
)
return
res
.
status
(
400
).
send
(
'
Bad request.
'
)
console
.
error
(
'
Inside outbox, should return all events from this user
'
)
const
res
=
{
'
@context
'
:
'
https://www.w3.org/ns/activitystreams
'
,
id
:
`
${
config
.
baseurl
}
/federation/u/
${
name
}
/outbox`
,
type
:
'
OrderedCollection
'
,
totalItems
:
1
,
first
:
{
id
:
`
${
config
.
baseurl
}
/federation/u/
${
name
}
/outbox`
,
type
:
'
OrderedCollectionPage
'
,
orderedItems
:
[{
content
:
'
ciao
'
}]
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment