Fix copy/paste bad code on /api/me/pending_follows

This commit is contained in:
Niko 2022-02-17 02:13:25 +01:00
parent 34d481ea77
commit a0b7b85e8f
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ module.exports = {
type: 'Follow', type: 'Follow',
rejected: undefined, rejected: undefined,
accepted: undefined, accepted: undefined,
}) }).toArray()
for (var i = 0; i < follows.length; i++) { for (var i = 0; i < follows.length; i++) {
const account = await api.accounts.getAccount(follows[i].actor) const account = await api.accounts.getAccount(follows[i].object)
result.from_me.push(account) result.from_me.push(account)
} }