1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +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

@ -52,9 +52,9 @@ function buildGlobalHeaders (body: any) {
}
}
function signAndContextify <T> (byActor: MActor, data: T, contextType: ContextType | null) {
async function signAndContextify <T> (byActor: MActor, data: T, contextType: ContextType | null) {
const activity = contextType
? activityPubContextify(data, contextType)
? await activityPubContextify(data, contextType)
: data
return signJsonLDObject(byActor, activity)