Refractor and optimize AP collections
Only display urls in general object, and paginate video comments, shares, likes and dislikes
This commit is contained in:
parent
e251f170b0
commit
8fffe21a7b
14 changed files with 215 additions and 260 deletions
11
server/controllers/activitypub/utils.ts
Normal file
11
server/controllers/activitypub/utils.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import * as express from 'express'
|
||||
|
||||
function activityPubResponse (data: any, res: express.Response) {
|
||||
return res.type('application/activity+json; charset=utf-8')
|
||||
.json(data)
|
||||
.end()
|
||||
}
|
||||
|
||||
export {
|
||||
activityPubResponse
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue