cleanup(ApPersonService.ts): import

This commit is contained in:
okayurisotto 2023-07-03 06:46:29 +09:00
parent 451a0e3b48
commit 5190ef954c

View file

@ -1,49 +1,48 @@
import { Inject, Injectable } from '@nestjs/common';
import promiseLimit from 'promise-limit';
import { DataSource } from 'typeorm';
import { ModuleRef } from '@nestjs/core';
import { DI } from '@/di-symbols.js';
import { Inject, Injectable } from '@nestjs/common';
import type { FollowingsRepository, InstancesRepository, UserProfilesRepository, UserPublickeysRepository, UsersRepository } from '@/models/index.js';
import type { Config } from '@/config.js';
import { UserPublickey } from '@/models/entities/UserPublickey.js';
import { UserProfile } from '@/models/entities/UserProfile.js';
import { UserNotePining } from '@/models/entities/UserNotePining.js';
import type { LocalUser, RemoteUser } from '@/models/entities/User.js';
import { User } from '@/models/entities/User.js';
import type { Note } from '@/models/entities/Note.js';
import type { Emoji } from '@/models/entities/Emoji.js';
import { truncate } from '@/misc/truncate.js';
import type { CacheService } from '@/core/CacheService.js';
import { StatusError } from '@/misc/status-error.js';
import { toArray } from '@/misc/prelude/array.js';
import { normalizeForSearch } from '@/misc/normalize-for-search.js';
import { isDuplicateKeyValueError } from '@/misc/is-duplicate-key-value-error.js';
import { checkHttps } from '@/misc/check-https.js';
import type Logger from '@/logger.js';
import type { Note } from '@/models/entities/Note.js';
import type { IdService } from '@/core/IdService.js';
import type { MfmService } from '@/core/MfmService.js';
import type { Emoji } from '@/models/entities/Emoji.js';
import { toArray } from '@/misc/prelude/array.js';
import type { GlobalEventService } from '@/core/GlobalEventService.js';
import type { FederatedInstanceService } from '@/core/FederatedInstanceService.js';
import type { FetchInstanceMetadataService } from '@/core/FetchInstanceMetadataService.js';
import { UserProfile } from '@/models/entities/UserProfile.js';
import { UserPublickey } from '@/models/entities/UserPublickey.js';
import { DI } from '@/di-symbols.js';
import { bindThis } from '@/decorators.js';
import type { UserEntityService } from '@/core/entities/UserEntityService.js';
import type { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js';
import type UsersChart from '@/core/chart/charts/users.js';
import type InstanceChart from '@/core/chart/charts/instance.js';
import type { HashtagService } from '@/core/HashtagService.js';
import { UserNotePining } from '@/models/entities/UserNotePining.js';
import { StatusError } from '@/misc/status-error.js';
import type { UtilityService } from '@/core/UtilityService.js';
import type { UserEntityService } from '@/core/entities/UserEntityService.js';
import { bindThis } from '@/decorators.js';
import { MetaService } from '@/core/MetaService.js';
import { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js';
import type { MfmService } from '@/core/MfmService.js';
import type { MetaService } from '@/core/MetaService.js';
import type { IdService } from '@/core/IdService.js';
import type { HashtagService } from '@/core/HashtagService.js';
import type { GlobalEventService } from '@/core/GlobalEventService.js';
import type { FetchInstanceMetadataService } from '@/core/FetchInstanceMetadataService.js';
import type { FederatedInstanceService } from '@/core/FederatedInstanceService.js';
import type { CacheService } from '@/core/CacheService.js';
import type { AccountMoveService } from '@/core/AccountMoveService.js';
import { checkHttps } from '@/misc/check-https.js';
import type { Config } from '@/config.js';
import { getApId, getApType, getOneApHrefNullable, isActor, isCollection, isCollectionOrOrderedCollection, isPropertyValue } from '../type.js';
import { extractApHashtags } from './tag.js';
import type { OnModuleInit } from '@nestjs/common';
import type { ApNoteService } from './ApNoteService.js';
import type { ApMfmService } from '../ApMfmService.js';
import type { ApResolverService, Resolver } from '../ApResolverService.js';
import type { ApLoggerService } from '../ApLoggerService.js';
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import type { ApImageService } from './ApImageService.js';
import type { OnModuleInit } from '@nestjs/common';
import type { DataSource } from 'typeorm';
import type { IActor, IObject } from '../type.js';
import type { ApResolverService, Resolver } from '../ApResolverService.js';
import type { ApMfmService } from '../ApMfmService.js';
import type { ApLoggerService } from '../ApLoggerService.js';
const nameLength = 128;
const summaryLength = 2048;