X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Factivitypub.ts;h=ce48fc5438c8fbaa53cf98f62080d95024306505;hb=b763f88dd0f455ce0ccae9cb81182c985a47c101;hp=2d49e6869d690adb75b838df41fdbea0c582a2bf;hpb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index 2d49e6869..ce48fc543 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts @@ -7,8 +7,7 @@ import { signJsonLDObject } from './peertube-crypto' import { pageToStartAndCount } from './core-utils' import { URL } from 'url' import { MActor, MVideoAccountLight } from '../typings/models' - -export type ContextType = 'All' | 'View' | 'Announce' | 'CacheFile' +import { ContextType } from '@shared/models/activitypub/context' function getContextData (type: ContextType) { const context: any[] = [ @@ -41,6 +40,9 @@ function getContextData (type: ContextType) { language: 'sc:inLanguage', Infohash: 'pt:Infohash', + Playlist: 'pt:Playlist', + PlaylistElement: 'pt:PlaylistElement', + originallyPublishedAt: 'sc:datePublished', views: { '@type': 'sc:Number',