1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Federate video views

This commit is contained in:
Chocobozzz 2017-11-22 16:25:03 +01:00
parent c46edbc2f6
commit 40ff57078e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 188 additions and 44 deletions

View file

@ -11,6 +11,7 @@ import {
isVideoTorrentDeleteActivityValid,
isVideoTorrentUpdateActivityValid
} from './videos'
import { isViewActivityValid } from './view'
function isRootActivityValid (activity: any) {
return Array.isArray(activity['@context']) &&
@ -55,7 +56,8 @@ export {
function checkCreateActivity (activity: any) {
return isVideoChannelCreateActivityValid(activity) ||
isVideoFlagValid(activity)
isVideoFlagValid(activity) ||
isViewActivityValid(activity)
}
function checkAddActivity (activity: any) {