From e307e4fce39853d445d086f92b8c556c363ee15d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Apr 2020 11:33:01 +0200 Subject: Add ability for auth plugins to hook tokens validity --- server/helpers/activitypub.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index 2d49e6869..aeb8fde01 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[] = [ -- cgit v1.2.3