This commit is contained in:
2025-11-11 09:27:48 +01:00
parent 1d7d3bf2aa
commit fff9765940
3 changed files with 3 additions and 3 deletions

View File

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