diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-21 18:23:10 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | e71bcc0f4b31ecfd84a786411febfc6d18a85258 (patch) | |
tree | ea31776b6bc69bd3b72e6c6f615cf94072271c82 /server/models/account/account-follow.ts | |
parent | b1cbc0dd3ee0fce6d8390b6d3996386a5b6097ac (diff) | |
download | PeerTube-e71bcc0f4b31ecfd84a786411febfc6d18a85258.tar.gz PeerTube-e71bcc0f4b31ecfd84a786411febfc6d18a85258.tar.zst PeerTube-e71bcc0f4b31ecfd84a786411febfc6d18a85258.zip |
Add outbox
Diffstat (limited to 'server/models/account/account-follow.ts')
-rw-r--r-- | server/models/account/account-follow.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/account-follow.ts b/server/models/account/account-follow.ts index 34ba3f8db..578bcda39 100644 --- a/server/models/account/account-follow.ts +++ b/server/models/account/account-follow.ts | |||
@@ -221,8 +221,8 @@ async function createListAcceptedFollowForApiQuery ( | |||
221 | 'INNER JOIN "Accounts" AS "Follows" ON "AccountFollows"."' + secondJoin + '" = "Follows"."id" ' + | 221 | 'INNER JOIN "Accounts" AS "Follows" ON "AccountFollows"."' + secondJoin + '" = "Follows"."id" ' + |
222 | 'WHERE "Accounts"."id" = ANY ($accountIds) AND "AccountFollows"."state" = \'accepted\' ' | 222 | 'WHERE "Accounts"."id" = ANY ($accountIds) AND "AccountFollows"."state" = \'accepted\' ' |
223 | 223 | ||
224 | if (start !== undefined) query += 'LIMIT ' + start | 224 | if (count !== undefined) query += 'LIMIT ' + count |
225 | if (count !== undefined) query += ', ' + count | 225 | if (start !== undefined) query += ' OFFSET ' + start |
226 | 226 | ||
227 | const options = { | 227 | const options = { |
228 | bind: { accountIds }, | 228 | bind: { accountIds }, |