PeerTube/server/lib/activitypub/process-update.ts

30 lines
695 B
TypeScript
Raw Normal View History

2017-11-09 10:51:58 -06:00
import {
ActivityCreate,
VideoTorrentObject,
VideoChannelObject
} from '../../../shared'
function processUpdateActivity (activity: ActivityCreate) {
if (activity.object.type === 'Video') {
return processUpdateVideo(activity.object)
} else if (activity.object.type === 'VideoChannel') {
return processUpdateVideoChannel(activity.object)
}
}
// ---------------------------------------------------------------------------
export {
processUpdateActivity
}
// ---------------------------------------------------------------------------
function processUpdateVideo (video: VideoTorrentObject) {
}
function processUpdateVideoChannel (videoChannel: VideoChannelObject) {
}