mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-10 04:39:55 +09:00
refactor
This commit is contained in:
@ -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 { UserMutingService } from '@/core/UserMutingService.js';
|
||||
import { UtilityService } from '@/core/UtilityService.js';
|
||||
@ -29,7 +29,7 @@ export class ImportMutingProcessorService {
|
||||
|
||||
private utilityService: UtilityService,
|
||||
private userMutingService: UserMutingService,
|
||||
private resolveUserService: ResolveUserService,
|
||||
private remoteUserResolveService: RemoteUserResolveService,
|
||||
private downloadService: DownloadService,
|
||||
private queueLoggerService: QueueLoggerService,
|
||||
) {
|
||||
@ -75,7 +75,7 @@ export class ImportMutingProcessorService {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user