Chocobozzz/PeerTube

View on GitHub
server/core/lib/activitypub/context.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Hooks } from '../plugins/hooks.js'

export function getContextFilter <T> () {
  return (contextData: T) => {
    return Hooks.wrapObject(
      contextData,
      'filter:activity-pub.activity.context.build.result'
    )
  }
}