mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor(api): collapse single-impl interfaces and facades (#3382)
This commit is contained in:
1 parent
e7b13fd19f
commit
c16d414d93
426 files changed
+2085
-6445
No files matched your search
@@ -6,8 +6,8 @@ import type {ChannelID, GuildID, MessageID, RoleID, StickerID, UserID, WebhookID
|
||||
import {createAttachmentID, createGuildID} from '@app/api/BrandedTypes';
|
||||
import {Config} from '@app/api/Config';
|
||||
import type {AttachmentToProcess} from '@app/api/channel/AttachmentDTOs';
|
||||
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
|
||||
import type {MessageUpdateRequest} from '@app/api/channel/MessageTypes';
|
||||
import type {IChannelRepositoryAggregate} from '@app/api/channel/repositories/IChannelRepositoryAggregate';
|
||||
import type {AttachmentUploadTraceRepository} from '@app/api/channel/repositories/message/AttachmentUploadTraceRepository';
|
||||
import {AttachmentProcessingService} from '@app/api/channel/services/message/AttachmentProcessingService';
|
||||
import {type DmNsfwContext, MessageContentService} from '@app/api/channel/services/message/MessageContentService';
|
||||
@@ -27,7 +27,7 @@ import type {
|
||||
MessageReference,
|
||||
MessageStickerItem,
|
||||
} from '@app/api/database/types/MessageTypes';
|
||||
import type {IGuildRepositoryAggregate} from '@app/api/guild/repositories/IGuildRepositoryAggregate';
|
||||
import type {GuildRepository} from '@app/api/guild/repositories/GuildRepository';
|
||||
import type {EmbedService} from '@app/api/infrastructure/EmbedService';
|
||||
import type {IMediaService, MediaProxyNsfwMode} from '@app/api/infrastructure/IMediaService';
|
||||
import type {ISnowflakeService} from '@app/api/infrastructure/ISnowflakeService';
|
||||
@@ -40,7 +40,7 @@ import type {Message} from '@app/api/models/Message';
|
||||
import type {MessageSnapshot} from '@app/api/models/MessageSnapshot';
|
||||
import type {User} from '@app/api/models/User';
|
||||
import type {ReadStateService} from '@app/api/read_state/ReadStateService';
|
||||
import type {IUserRepository} from '@app/api/user/IUserRepository';
|
||||
import type {UserRepository} from '@app/api/user/repositories/UserRepository';
|
||||
import {hasVisibleContent} from '@app/api/utils/StringUtils';
|
||||
import {MessageFlags, Permissions, SENDABLE_MESSAGE_FLAGS} from '@fluxer/constants/src/ChannelConstants';
|
||||
import {ATTACHMENT_MAX_SIZE_NON_PREMIUM} from '@fluxer/constants/src/LimitConstants';
|
||||
@@ -129,9 +129,9 @@ export class MessagePersistenceService {
|
||||
private readonly attachmentDecayService: AttachmentDecayService;
|
||||
|
||||
constructor(
|
||||
private channelRepository: IChannelRepositoryAggregate,
|
||||
private userRepository: IUserRepository,
|
||||
guildRepository: IGuildRepositoryAggregate,
|
||||
private channelRepository: ChannelRepository,
|
||||
private userRepository: UserRepository,
|
||||
guildRepository: GuildRepository,
|
||||
private embedService: EmbedService,
|
||||
private readonly storageService: IStorageService,
|
||||
attachmentUploadTraceRepository: AttachmentUploadTraceRepository,
|
||||
|
||||
Reference in new issue
Block a user