diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-31 15:36:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-31 15:36:50 +0200 |
commit | 9977c128387f38dddd697b2e9a405dcea52407b7 (patch) | |
tree | b439da0e84f62688cdf69b449c81a0ba2ed3f3a1 /server/lib/activitypub/process | |
parent | ee79b60e4e500a1dc7db8bcee560d9a4a1a5d17a (diff) | |
download | PeerTube-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.ts | 15 |
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' | |||
9 | import { forwardVideoRelatedActivity } from '../send/utils' | 9 | import { forwardVideoRelatedActivity } from '../send/utils' |
10 | import { createOrUpdateCacheFile } from '../cache-file' | 10 | import { createOrUpdateCacheFile } from '../cache-file' |
11 | import { Notifier } from '../../notifier' | 11 | import { Notifier } from '../../notifier' |
12 | import { processViewActivity } from './process-view' | ||
13 | import { processDislikeActivity } from './process-dislike' | ||
14 | import { processFlagActivity } from './process-flag' | ||
15 | import { PlaylistObject } from '../../../../shared/models/activitypub/objects/playlist-object' | 12 | import { PlaylistObject } from '../../../../shared/models/activitypub/objects/playlist-object' |
16 | import { createOrUpdateVideoPlaylist } from '../playlist' | 13 | import { createOrUpdateVideoPlaylist } from '../playlist' |
17 | import { VideoModel } from '../../../models/video/video' | 14 | import { 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 | } |