feat: add announcement channels, publishing and following (#3090)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-01 16:57:21 +02:00
1 parent 376afd2ad6
commit 7e4d5137f8
381 files changed
+45650 -14076

No files matched your search

@@ -8,6 +8,7 @@ import {Logger} from '@app/features/platform/utils/AppLogger';
import Slowmode from '@app/features/slowmode/state/Slowmode';
import {ChannelTypes} from '@fluxer/constants/src/ChannelConstants';
import {CHANNEL_RATE_LIMIT_PER_USER_MAX} from '@fluxer/constants/src/LimitConstants';
import type {ChannelFollowerStatsResponse} from '@fluxer/schema/src/domains/channel/ChannelFollowSchemas';
import type {Channel, ChannelSlowmodeStateResponse} from '@fluxer/schema/src/domains/channel/ChannelSchemas';
import type {Invite} from '@fluxer/schema/src/domains/invite/InviteSchemas';
@@ -31,6 +32,7 @@ type ChannelUpdateParams = Partial<
Pick<
Channel,
| 'name'
| 'type'
| 'topic'
| 'url'
| 'nsfw'
@@ -155,6 +157,11 @@ export async function update(channelId: string, params: ChannelUpdateParams): Pr
}
}
export async function fetchFollowerStats(channelId: string): Promise<ChannelFollowerStatsResponse> {
const response = await http.get<ChannelFollowerStatsResponse>(Endpoints.CHANNEL_FOLLOWER_STATS(channelId));
return response.body;
}
export async function updateGroupDMNickname(
channelId: string,
userId: string,