mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability for plugins to alter video jsonld
This commit is contained in:
parent
4899138ec5
commit
3b504f6ed4
16 changed files with 91 additions and 94 deletions
|
@ -1,6 +1,8 @@
|
|||
import express from 'express'
|
||||
|
||||
function activityPubResponse (data: any, res: express.Response) {
|
||||
async function activityPubResponse (promise: Promise<any>, res: express.Response) {
|
||||
const data = await promise
|
||||
|
||||
return res.type('application/activity+json; charset=utf-8')
|
||||
.json(data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue