mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-20 11:48:31 -06:00
Only display urls in general object, and paginate video comments, shares, likes and dislikes
12 lines
243 B
TypeScript
12 lines
243 B
TypeScript
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
|
|
}
|