-import { CRAWL_REQUEST_CONCURRENCY } from '../../initializers'
-
-async function createRates (actorUrls: string[], video: VideoModel, rate: VideoRateType) {
- let rateCounts = 0
+import { CRAWL_REQUEST_CONCURRENCY } from '../../initializers/constants'
+import { AccountVideoRateModel } from '../../models/account/account-video-rate'
+import { MAccountActor, MActorUrl, MVideo, MVideoAccountLight, MVideoId } from '../../types/models'
+import { getOrCreateActorAndServerAndModel } from './actor'
+import { sendLike, sendUndoDislike, sendUndoLike } from './send'
+import { sendDislike } from './send/send-dislike'
+import { getVideoDislikeActivityPubUrlByLocalActor, getVideoLikeActivityPubUrlByLocalActor } from './url'