diff --git a/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts b/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts index e7696c9b1..6ef84b516 100644 --- a/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts +++ b/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts @@ -16,7 +16,6 @@ export const meta = { requireCredential: true, requireAdmin: true, - secure: true, kind: 'write:admin:federation', errors: { @@ -42,7 +41,7 @@ export default class extends Endpoint { // eslint- @Inject(DI.usersRepository) private usersRepository: UsersRepository, - @Inject(DI.notesRepository) + @Inject(DI.followingsRepository) private followingsRepository: FollowingsRepository, @Inject(DI.instancesRepository) @@ -59,10 +58,10 @@ export default class extends Endpoint { // eslint- } const followings = await this.followingsRepository.findBy({ - followerHost: ps.host, + followerHost: instance.host, }); const followers = await this.followingsRepository.findBy({ - followeeHost: ps.host, + followeeHost: instance.host, }); const followingPairs = await Promise.all(followings.map(f => Promise.all([