From d8553faa4939889fa7b7ef7329aa474a81cbbdb9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Nov 2017 14:37:00 +0100 Subject: Better follows tests --- server/lib/activitypub/send/send-undo.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'server/lib/activitypub/send/send-undo.ts') diff --git a/server/lib/activitypub/send/send-undo.ts b/server/lib/activitypub/send/send-undo.ts index 53fddd0cb..8f46a051e 100644 --- a/server/lib/activitypub/send/send-undo.ts +++ b/server/lib/activitypub/send/send-undo.ts @@ -1,14 +1,14 @@ import { Transaction } from 'sequelize' import { ActivityCreate, ActivityFollow, ActivityLike, ActivityUndo } from '../../../../shared/models/activitypub/activity' +import { getServerAccount } from '../../../helpers/utils' import { AccountInstance } from '../../../models' import { AccountFollowInstance } from '../../../models/account/account-follow-interface' +import { VideoInstance } from '../../../models/video/video-interface' +import { getAccountFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' import { broadcastToFollowers, getAccountsToForwardVideoAction, unicastTo } from './misc' +import { createActivityData, createDislikeActivityData } from './send-create' import { followActivityData } from './send-follow' -import { getAccountFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' -import { VideoInstance } from '../../../models/video/video-interface' import { likeActivityData } from './send-like' -import { createActivityData, createDislikeActivityData } from './send-create' -import { getServerAccount } from '../../../helpers/utils' async function sendUndoFollow (accountFollow: AccountFollowInstance, t: Transaction) { const me = accountFollow.AccountFollower @@ -75,7 +75,6 @@ async function sendUndoDislikeToVideoFollowers (byAccount: AccountInstance, vide return broadcastToFollowers(data, serverAccount, accountsToForwardView, t, followersException) } - // --------------------------------------------------------------------------- export { -- cgit v1.2.3