Fix #751: Peertube v8.0.0 compatibility.

This commit is contained in:
John Livingston
2025-12-12 15:12:24 +01:00
parent 5ef5b86b39
commit ef78658f4c
4 changed files with 86 additions and 17 deletions

View File

@ -23,6 +23,7 @@ import { updateForbidSpecialCharsHandler } from './lib/prosody/migration/migrate
import { mustMigrateV14 } from './lib/prosody/migration/migratev14'
import { Emojis } from './lib/emojis'
import { LivechatProsodyAuth } from './lib/prosody/auth'
import { initPeertubeversion } from './lib/helpers'
import decache from 'decache'
// FIXME: Peertube unregister don't have any parameter.
@ -38,6 +39,8 @@ async function register (options: RegisterServerOptions): Promise<any> {
throw new Error('Your peertube version is not correct. This plugin is not compatible with Peertube < 3.2.0.')
}
await initPeertubeversion(options)
// First: load languages files, so we can localize strings.
await loadLoc()