refactor
This commit is contained in:
parent
14221e78b7
commit
22ccb0fa71
93 changed files with 157 additions and 157 deletions
|
@ -5,7 +5,7 @@ import type { UsersRepository, DriveFilesRepository } from '@/models/index.js';
|
|||
import type { Config } from '@/config.js';
|
||||
import type Logger from '@/logger.js';
|
||||
import * as Acct from '@/misc/acct.js';
|
||||
import { ResolveUserService } from '@/core/remote/ResolveUserService.js';
|
||||
import { RemoteUserResolveService } from '@/core/RemoteUserResolveService.js';
|
||||
import { DownloadService } from '@/core/DownloadService.js';
|
||||
import { UserFollowingService } from '@/core/UserFollowingService.js';
|
||||
import { UtilityService } from '@/core/UtilityService.js';
|
||||
|
@ -29,7 +29,7 @@ export class ImportFollowingProcessorService {
|
|||
|
||||
private utilityService: UtilityService,
|
||||
private userFollowingService: UserFollowingService,
|
||||
private resolveUserService: ResolveUserService,
|
||||
private remoteUserResolveService: RemoteUserResolveService,
|
||||
private downloadService: DownloadService,
|
||||
private queueLoggerService: QueueLoggerService,
|
||||
) {
|
||||
|
@ -75,7 +75,7 @@ export class ImportFollowingProcessorService {
|
|||
if (host == null && target == null) continue;
|
||||
|
||||
if (target == null) {
|
||||
target = await this.resolveUserService.resolveUser(username, host);
|
||||
target = await this.remoteUserResolveService.resolveUser(username, host);
|
||||
}
|
||||
|
||||
if (target == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue