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:
parent
4899138ec5
commit
3b504f6ed4
16 changed files with 91 additions and 94 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue