fix(a11y): improve player controls visibility, restore browser Alt+Left navigation, add back button, and filter successful import notifications (v1.7.3)

This commit is contained in:
Enes Yakıştır
2026-11-01 10:39:57 +03:00
parent 4e4c7d37eb
commit 798c850cef
4 changed files with 73 additions and 7 deletions
+20 -1
View File
@@ -178,9 +178,28 @@ function isContentBlocked(text, list = DEFAULT_BLOCKED_KEYWORDS) {
return false;
}
async function register({ getRouter, registerSetting, settingsManager, peertubeHelpers, logger }) {
async function register({ registerHook, getRouter, registerSetting, settingsManager, peertubeHelpers, logger }) {
const router = getRouter();
// YakTube Bildirim Filtresi: Başarılı video içe aktarımları (type 7) bildirim kutusunu doldurmasın,
// Sadece başarısız olanlar (type 8 / MY_VIDEO_IMPORT_ERROR) bildirim olarak düşsün
if (typeof registerHook === 'function') {
registerHook({
target: 'filter:notifier.notification.enabled.result',
handler: async (result, { notification }) => {
if (notification && (notification.type === 7 || notification.type === 'my-video-import-success')) {
return {
webNotificationEnabled: false,
emailNotificationEnabled: false
};
}
return result;
}
});
if (logger) logger.info('[YakTube OnDemand] Registered filter:notifier.notification.enabled.result (suppressing successful import notifications).');
}
let guestImportLimit = 5;
let maxDiskUsagePercent = 85;
let customChannelId = '';