diff options
Diffstat (limited to 'server/lib/activitypub/process-update.ts')
-rw-r--r-- | server/lib/activitypub/process-update.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/lib/activitypub/process-update.ts b/server/lib/activitypub/process-update.ts new file mode 100644 index 000000000..187c7be7c --- /dev/null +++ b/server/lib/activitypub/process-update.ts | |||
@@ -0,0 +1,29 @@ | |||
1 | import { | ||
2 | ActivityCreate, | ||
3 | VideoTorrentObject, | ||
4 | VideoChannelObject | ||
5 | } from '../../../shared' | ||
6 | |||
7 | function processUpdateActivity (activity: ActivityCreate) { | ||
8 | if (activity.object.type === 'Video') { | ||
9 | return processUpdateVideo(activity.object) | ||
10 | } else if (activity.object.type === 'VideoChannel') { | ||
11 | return processUpdateVideoChannel(activity.object) | ||
12 | } | ||
13 | } | ||
14 | |||
15 | // --------------------------------------------------------------------------- | ||
16 | |||
17 | export { | ||
18 | processUpdateActivity | ||
19 | } | ||
20 | |||
21 | // --------------------------------------------------------------------------- | ||
22 | |||
23 | function processUpdateVideo (video: VideoTorrentObject) { | ||
24 | |||
25 | } | ||
26 | |||
27 | function processUpdateVideoChannel (videoChannel: VideoChannelObject) { | ||
28 | |||
29 | } | ||