This commit is contained in:
2025-11-11 09:35:19 +01:00
parent 2125d545f2
commit 88c546bf87
3 changed files with 12 additions and 4 deletions

View File

@@ -575,8 +575,7 @@ function App() {
return null;
}
const prefix = (notificationCapabilities.ntfy.topicPrefix || '').replace(/^-+|-+$/g, '');
const separator = prefix && sanitizedTopic ? '_' : '';
const slug = `${prefix}${separator}${sanitizedTopic}` || sanitizedTopic || prefix;
const slug = `${prefix}${sanitizedTopic}` || sanitizedTopic || prefix;
if (!slug) {
return null;
}