mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat: add announcement channels, publishing and following (#3090)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user