feat: PeerTube integration — alternate audio/video labels, FilePond pools, shared SMTP credentials, channel by name, test button, resumable upload, embed improvements, fix alt labels/curl_close/deprecation

This commit is contained in:
Pontoporeia
2026-05-11 10:47:33 +02:00
parent 28ef35dce5
commit 83a5a508ea
18 changed files with 748 additions and 261 deletions

View File

@@ -138,17 +138,12 @@ if ($section === 'formulaire_restrictions') {
$enabled = isset($_POST['peertube_upload_enabled']) ? '1' : '0';
$db->setSetting('peertube_upload_enabled', $enabled);
// Credentials — only overwrite password when user typed something
// PeerTube-specific settings (auth uses SMTP credentials)
$data = [
'instance_url' => $_POST['peertube_instance_url'] ?? '',
'username' => $_POST['peertube_username'] ?? '',
'channel_id' => $_POST['peertube_channel_id'] ?? 1,
'channel_name' => $_POST['peertube_channel_name'] ?? '',
'privacy' => $_POST['peertube_privacy'] ?? 1,
];
$pwd = $_POST['peertube_password'] ?? '';
if ($pwd !== '') {
$data['password'] = $pwd;
}
PeerTubeService::updateSettings($db, $data);
$logger->logPeerTubeUpdate($enabled === '1');
App::flash('success', 'Paramètres PeerTube mis à jour.');