cleanup(ApNoteService.ts): import

This commit is contained in:
okayurisotto 2023-07-03 06:12:03 +09:00
parent b651fb55dc
commit d8f0d76973

View file

@ -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 {