diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 14:37:00 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | d8553faa4939889fa7b7ef7329aa474a81cbbdb9 (patch) | |
tree | 4ccd71690f26b50751fa75d9b9c77d2f790c9bcd /server/lib/activitypub/send/send-undo.ts | |
parent | 0032ebe94aa83fab761c7de3ceb6210ac4532824 (diff) | |
download | PeerTube-d8553faa4939889fa7b7ef7329aa474a81cbbdb9.tar.gz PeerTube-d8553faa4939889fa7b7ef7329aa474a81cbbdb9.tar.zst PeerTube-d8553faa4939889fa7b7ef7329aa474a81cbbdb9.zip |
Better follows tests
Diffstat (limited to 'server/lib/activitypub/send/send-undo.ts')
-rw-r--r-- | server/lib/activitypub/send/send-undo.ts | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ | |||
1 | import { Transaction } from 'sequelize' | 1 | import { Transaction } from 'sequelize' |
2 | import { ActivityCreate, ActivityFollow, ActivityLike, ActivityUndo } from '../../../../shared/models/activitypub/activity' | 2 | import { ActivityCreate, ActivityFollow, ActivityLike, ActivityUndo } from '../../../../shared/models/activitypub/activity' |
3 | import { getServerAccount } from '../../../helpers/utils' | ||
3 | import { AccountInstance } from '../../../models' | 4 | import { AccountInstance } from '../../../models' |
4 | import { AccountFollowInstance } from '../../../models/account/account-follow-interface' | 5 | import { AccountFollowInstance } from '../../../models/account/account-follow-interface' |
6 | import { VideoInstance } from '../../../models/video/video-interface' | ||
7 | import { getAccountFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' | ||
5 | import { broadcastToFollowers, getAccountsToForwardVideoAction, unicastTo } from './misc' | 8 | import { broadcastToFollowers, getAccountsToForwardVideoAction, unicastTo } from './misc' |
9 | import { createActivityData, createDislikeActivityData } from './send-create' | ||
6 | import { followActivityData } from './send-follow' | 10 | import { followActivityData } from './send-follow' |
7 | import { getAccountFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' | ||
8 | import { VideoInstance } from '../../../models/video/video-interface' | ||
9 | import { likeActivityData } from './send-like' | 11 | import { likeActivityData } from './send-like' |
10 | import { createActivityData, createDislikeActivityData } from './send-create' | ||
11 | import { getServerAccount } from '../../../helpers/utils' | ||
12 | 12 | ||
13 | async function sendUndoFollow (accountFollow: AccountFollowInstance, t: Transaction) { | 13 | async function sendUndoFollow (accountFollow: AccountFollowInstance, t: Transaction) { |
14 | const me = accountFollow.AccountFollower | 14 | const me = accountFollow.AccountFollower |
@@ -75,7 +75,6 @@ async function sendUndoDislikeToVideoFollowers (byAccount: AccountInstance, vide | |||
75 | return broadcastToFollowers(data, serverAccount, accountsToForwardView, t, followersException) | 75 | return broadcastToFollowers(data, serverAccount, accountsToForwardView, t, followersException) |
76 | } | 76 | } |
77 | 77 | ||
78 | |||
79 | // --------------------------------------------------------------------------- | 78 | // --------------------------------------------------------------------------- |
80 | 79 | ||
81 | export { | 80 | export { |