From 97f2675d404eb073a447ea9b3c7678b5e560a095 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 19 Aug 2021 22:04:15 +0900 Subject: refactor: use path alias to improve readability --- src/remote/activitypub/models/mention.ts | 2 +- src/remote/activitypub/models/note.ts | 2 +- src/remote/activitypub/models/person.ts | 2 +- src/remote/activitypub/models/tag.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/remote/activitypub/models') diff --git a/src/remote/activitypub/models/mention.ts b/src/remote/activitypub/models/mention.ts index 0db0324aba..ade9c90806 100644 --- a/src/remote/activitypub/models/mention.ts +++ b/src/remote/activitypub/models/mention.ts @@ -1,4 +1,4 @@ -import { toArray, unique } from '../../../prelude/array'; +import { toArray, unique } from '@/prelude/array'; import { IObject, isMention, IApMention } from '../type'; import { resolvePerson } from './person'; import * as promiseLimit from 'promise-limit'; diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index d28d642a0a..25004cb4d2 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -8,7 +8,7 @@ import { resolveImage } from './image'; import { IRemoteUser } from '@/models/entities/user'; import { htmlToMfm } from '../misc/html-to-mfm'; import { extractApHashtags } from './tag'; -import { unique, toArray, toSingle } from '../../../prelude/array'; +import { unique, toArray, toSingle } from '@/prelude/array'; import { extractPollFromQuestion } from './question'; import vote from '@/services/note/polls/vote'; import { apLogger } from '../logger'; diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 3ae13135e3..4823def7cb 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -25,7 +25,7 @@ import { isDuplicateKeyValueError } from '@/misc/is-duplicate-key-value-error'; import { toPuny } from '@/misc/convert-host'; import { UserProfile } from '@/models/entities/user-profile'; import { getConnection } from 'typeorm'; -import { toArray } from '../../../prelude/array'; +import { toArray } from '@/prelude/array'; import { fetchInstanceMetadata } from '@/services/fetch-instance-metadata'; import { normalizeForSearch } from '@/misc/normalize-for-search'; diff --git a/src/remote/activitypub/models/tag.ts b/src/remote/activitypub/models/tag.ts index d25cb463fe..fbc6b9b428 100644 --- a/src/remote/activitypub/models/tag.ts +++ b/src/remote/activitypub/models/tag.ts @@ -1,4 +1,4 @@ -import { toArray } from '../../../prelude/array'; +import { toArray } from '@/prelude/array'; import { IObject, isHashtag, IApHashtag } from '../type'; export function extractApHashtags(tags: IObject | IObject[] | null | undefined) { -- cgit v1.2.3-freya