aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/process
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-31 15:36:50 +0200
committerChocobozzz <me@florianbigard.com>2019-05-31 15:36:50 +0200
commit9977c128387f38dddd697b2e9a405dcea52407b7 (patch)
treeb439da0e84f62688cdf69b449c81a0ba2ed3f3a1 /server/lib/activitypub/process
parentee79b60e4e500a1dc7db8bcee560d9a4a1a5d17a (diff)
downloadPeerTube-9977c128387f38dddd697b2e9a405dcea52407b7.tar.gz
PeerTube-9977c128387f38dddd697b2e9a405dcea52407b7.tar.zst
PeerTube-9977c128387f38dddd697b2e9a405dcea52407b7.zip
Remove old activities processor
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r--server/lib/activitypub/process/process-create.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts
index e4c173e99..3b6eb45c4 100644
--- a/server/lib/activitypub/process/process-create.ts
+++ b/server/lib/activitypub/process/process-create.ts
@@ -9,9 +9,6 @@ import { getOrCreateVideoAndAccountAndChannel } from '../videos'
9import { forwardVideoRelatedActivity } from '../send/utils' 9import { forwardVideoRelatedActivity } from '../send/utils'
10import { createOrUpdateCacheFile } from '../cache-file' 10import { createOrUpdateCacheFile } from '../cache-file'
11import { Notifier } from '../../notifier' 11import { Notifier } from '../../notifier'
12import { processViewActivity } from './process-view'
13import { processDislikeActivity } from './process-dislike'
14import { processFlagActivity } from './process-flag'
15import { PlaylistObject } from '../../../../shared/models/activitypub/objects/playlist-object' 12import { PlaylistObject } from '../../../../shared/models/activitypub/objects/playlist-object'
16import { createOrUpdateVideoPlaylist } from '../playlist' 13import { createOrUpdateVideoPlaylist } from '../playlist'
17import { VideoModel } from '../../../models/video/video' 14import { VideoModel } from '../../../models/video/video'
@@ -20,18 +17,6 @@ async function processCreateActivity (activity: ActivityCreate, byActor: ActorMo
20 const activityObject = activity.object 17 const activityObject = activity.object
21 const activityType = activityObject.type 18 const activityType = activityObject.type
22 19
23 if (activityType === 'View') {
24 return processViewActivity(activity, byActor)
25 }
26
27 if (activityType === 'Dislike') {
28 return retryTransactionWrapper(processDislikeActivity, activity, byActor)
29 }
30
31 if (activityType === 'Flag') {
32 return retryTransactionWrapper(processFlagActivity, activity, byActor)
33 }
34
35 if (activityType === 'Video') { 20 if (activityType === 'Video') {
36 return processCreateVideo(activity) 21 return processCreateVideo(activity)
37 } 22 }