-import { checkUrlsSameHost, getAPUrl } from '../../helpers/activitypub'
-import { ActorModel } from '../../models/activitypub/actor'
-import { getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from './url'
-
-async function createRates (ratesUrl: string[], video: VideoModel, rate: VideoRateType) {
- let rateCounts = 0
+import { checkUrlsSameHost, getAPId } from '../../helpers/activitypub'
+import { getVideoDislikeActivityPubUrlByLocalActor, getVideoLikeActivityPubUrlByLocalActor } from './url'
+import { sendDislike } from './send/send-dislike'
+import { MAccountActor, MActorUrl, MVideo, MVideoAccountLight, MVideoId } from '../../types/models'