Filter filter:activity-pub.activity.context.build.result: missing object type as parameter #5873
Labels
Component: Federation 🎡
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
When using
filter:activity-pub.video.json-ld.build.result
to add some specific data in the ActivityPub video object, the documentation recommands usingfilter:activity-pub.activity.context.build.result
to update the JSON-LD context.filter:activity-pub.video.json-ld.build.result
is specific to Video objects, butfilter:activity-pub.activity.context.build.result
is called for all object types (Video, Comment, Playlist, ...).There is no easy way to know which object type we are manipulating, so we can't choose to add some specific data only for Video object.
Describe the solution you would like
The hook function should receive an additional
type
parameter:PeerTube/server/lib/activitypub/context.ts
Lines 182 to 189 in 8ef8660
Should become something like:
The text was updated successfully, but these errors were encountered: