diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 14:19:55 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 0032ebe94aa83fab761c7de3ceb6210ac4532824 (patch) | |
tree | 3ea407d7ea6de4c7f7bc66caba7e23c0cc4036e3 /server/models/account/account-follow.ts | |
parent | d52eb8f656242c7e34afdb2dee681861fb9bce35 (diff) | |
download | PeerTube-0032ebe94aa83fab761c7de3ceb6210ac4532824.tar.gz PeerTube-0032ebe94aa83fab761c7de3ceb6210ac4532824.tar.zst PeerTube-0032ebe94aa83fab761c7de3ceb6210ac4532824.zip |
Federate likes/dislikes
Diffstat (limited to 'server/models/account/account-follow.ts')
-rw-r--r-- | server/models/account/account-follow.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/account/account-follow.ts b/server/models/account/account-follow.ts index 578bcda39..8e35c7d20 100644 --- a/server/models/account/account-follow.ts +++ b/server/models/account/account-follow.ts | |||
@@ -93,7 +93,7 @@ toFormattedJSON = function (this: AccountFollowInstance) { | |||
93 | return json | 93 | return json |
94 | } | 94 | } |
95 | 95 | ||
96 | loadByAccountAndTarget = function (accountId: number, targetAccountId: number) { | 96 | loadByAccountAndTarget = function (accountId: number, targetAccountId: number, t?: Sequelize.Transaction) { |
97 | const query = { | 97 | const query = { |
98 | where: { | 98 | where: { |
99 | accountId, | 99 | accountId, |
@@ -110,7 +110,8 @@ loadByAccountAndTarget = function (accountId: number, targetAccountId: number) { | |||
110 | required: true, | 110 | required: true, |
111 | as: 'AccountFollowing' | 111 | as: 'AccountFollowing' |
112 | } | 112 | } |
113 | ] | 113 | ], |
114 | transaction: t | ||
114 | } | 115 | } |
115 | 116 | ||
116 | return AccountFollow.findOne(query) | 117 | return AccountFollow.findOne(query) |