From d8f0d769733c4cb0629821b04e557a0ae6f5ff5b Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Mon, 3 Jul 2023 06:12:03 +0900 Subject: [PATCH] cleanup(`ApNoteService.ts`): `import` --- .../core/activitypub/models/ApNoteService.ts | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index f82e41a2cd..29abf997f4 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -1,37 +1,35 @@ -import { forwardRef, Inject, Injectable } from '@nestjs/common'; -import promiseLimit from 'promise-limit'; import { In } from 'typeorm'; -import { DI } from '@/di-symbols.js'; +import promiseLimit from 'promise-limit'; +import { forwardRef, Inject, Injectable } from '@nestjs/common'; import type { PollsRepository, EmojisRepository } from '@/models/index.js'; -import type { Config } from '@/config.js'; import type { RemoteUser } from '@/models/entities/User.js'; import type { Note } from '@/models/entities/Note.js'; -import { toArray, toSingle, unique } from '@/misc/prelude/array.js'; import type { Emoji } from '@/models/entities/Emoji.js'; -import { MetaService } from '@/core/MetaService.js'; -import { AppLockService } from '@/core/AppLockService.js'; import type { DriveFile } from '@/models/entities/DriveFile.js'; -import { NoteCreateService } from '@/core/NoteCreateService.js'; -import type Logger from '@/logger.js'; -import { IdService } from '@/core/IdService.js'; -import { PollService } from '@/core/PollService.js'; import { StatusError } from '@/misc/status-error.js'; -import { UtilityService } from '@/core/UtilityService.js'; -import { bindThis } from '@/decorators.js'; +import { toArray, toSingle, unique } from '@/misc/prelude/array.js'; import { checkHttps } from '@/misc/check-https.js'; -import { getOneApId, getApId, getOneApHrefNullable, validPost, isEmoji, getApType } from '../type.js'; -import { ApLoggerService } from '../ApLoggerService.js'; -import { ApMfmService } from '../ApMfmService.js'; -import { ApDbResolverService } from '../ApDbResolverService.js'; -import { ApResolverService } from '../ApResolverService.js'; -import { ApAudienceService } from '../ApAudienceService.js'; -import { ApPersonService } from './ApPersonService.js'; +import type Logger from '@/logger.js'; +import { DI } from '@/di-symbols.js'; +import { bindThis } from '@/decorators.js'; +import type { UtilityService } from '@/core/UtilityService.js'; +import type { PollService } from '@/core/PollService.js'; +import type { NoteCreateService } from '@/core/NoteCreateService.js'; +import type { MetaService } from '@/core/MetaService.js'; +import type { IdService } from '@/core/IdService.js'; +import type { AppLockService } from '@/core/AppLockService.js'; +import type { Config } from '@/config.js'; +import { getOneApId, getApId, getOneApHrefNullable, validPost, isEmoji, getApType, type IObject, type IPost } from '../type.js'; import { extractApHashtags } from './tag.js'; -import { ApMentionService } from './ApMentionService.js'; -import { ApQuestionService } from './ApQuestionService.js'; -import { ApImageService } from './ApImageService.js'; -import type { Resolver } from '../ApResolverService.js'; -import type { IObject, IPost } from '../type.js'; +import { ApPersonService } from './ApPersonService.js'; +import type { ApQuestionService } from './ApQuestionService.js'; +import type { ApMentionService } from './ApMentionService.js'; +import type { ApImageService } from './ApImageService.js'; +import type { ApResolverService, Resolver } from '../ApResolverService.js'; +import type { ApMfmService } from '../ApMfmService.js'; +import type { ApLoggerService } from '../ApLoggerService.js'; +import type { ApDbResolverService } from '../ApDbResolverService.js'; +import type { ApAudienceService } from '../ApAudienceService.js'; @Injectable() export class ApNoteService {