mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
refactor(imports): replace relative imports with path aliases (#2741)
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {type ChannelID, createChannelID, type MessageID, type UserID} from '@app/api/BrandedTypes';
|
||||
import type {MessageRequest, MessageUpdateRequest} from '@app/api/channel/MessageTypes';
|
||||
import {
|
||||
assertAttachmentFileSizesWithinLimit,
|
||||
MESSAGE_NONCE_TTL,
|
||||
} from '@app/api/channel/services/message/MessageHelpers';
|
||||
import {contentModerationService} from '@app/api/infrastructure/ContentModerationService';
|
||||
import type {LimitConfigService} from '@app/api/limits/LimitConfigService';
|
||||
import {resolveLimitSafe} from '@app/api/limits/LimitConfigUtils';
|
||||
import {createLimitMatchContext} from '@app/api/limits/LimitMatchContextBuilder';
|
||||
import type {Channel} from '@app/api/models/Channel';
|
||||
import type {Message} from '@app/api/models/Message';
|
||||
import type {User} from '@app/api/models/User';
|
||||
import {hasVisibleContent} from '@app/api/utils/StringUtils';
|
||||
import {
|
||||
isMessageTypeDeletable,
|
||||
MessageFlags,
|
||||
@@ -24,17 +38,6 @@ import {UnknownMessageError} from '@fluxer/errors/src/domains/channel/UnknownMes
|
||||
import {InputValidationError} from '@fluxer/errors/src/domains/core/InputValidationError';
|
||||
import type {GuildResponse} from '@fluxer/schema/src/domains/guild/GuildResponseSchemas';
|
||||
import type {ICacheService} from '@pkgs/cache/src/ICacheService';
|
||||
import {type ChannelID, createChannelID, type MessageID, type UserID} from '../../../BrandedTypes';
|
||||
import {contentModerationService} from '../../../infrastructure/ContentModerationService';
|
||||
import type {LimitConfigService} from '../../../limits/LimitConfigService';
|
||||
import {resolveLimitSafe} from '../../../limits/LimitConfigUtils';
|
||||
import {createLimitMatchContext} from '../../../limits/LimitMatchContextBuilder';
|
||||
import type {Channel} from '../../../models/Channel';
|
||||
import type {Message} from '../../../models/Message';
|
||||
import type {User} from '../../../models/User';
|
||||
import {hasVisibleContent} from '../../../utils/StringUtils';
|
||||
import type {MessageRequest, MessageUpdateRequest} from '../../MessageTypes';
|
||||
import {assertAttachmentFileSizesWithinLimit, MESSAGE_NONCE_TTL} from './MessageHelpers';
|
||||
|
||||
export class MessageValidationService {
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user