1
0
Fork 0
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:
Chocobozzz 2023-03-10 12:01:21 +01:00
parent 4899138ec5
commit 3b504f6ed4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
16 changed files with 91 additions and 94 deletions

View file

@ -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)
}