ntfy fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -79,7 +79,7 @@ const NotificationPanel = ({
|
||||
)}
|
||||
{capabilities.ntfy.topicPrefix && (
|
||||
<p className="text-xs text-gray-500">
|
||||
Präfix: {capabilities.ntfy.topicPrefix} (Bindestrich wird automatisch ergänzt)
|
||||
Präfix: {capabilities.ntfy.topicPrefix} (Unterstrich wird automatisch ergänzt)
|
||||
</p>
|
||||
)}
|
||||
{ntfyPreviewUrl && (
|
||||
|
||||
Reference in New Issue
Block a user