Terms&Conditions (#18):

* new settings for instance's terms
* new channel option for channel's terms
This commit is contained in:
John Livingston
2024-06-21 18:18:11 +02:00
parent 4b49037f68
commit 45a63eaecd
13 changed files with 93 additions and 3 deletions

1
shared/lib/constants.ts Normal file
View File

@ -0,0 +1 @@
export const channelTermsMaxLength = 400

View File

@ -101,11 +101,12 @@ interface ChannelConfigurationOptions {
slowMode: {
duration: number
}
mute: {
mute: { // comes with Livechat 10.2.0
anonymous: boolean
// TODO: https://github.com/JohnXLivingston/peertube-plugin-livechat/issues/127
// nonFollowers: boolean (or a number of seconds?)
}
terms?: string // comes with Livechat 10.2.0
}
interface ChannelForbiddenWords {