feat(notifications): add priority setting for ntfy agent (#2306)

This commit is contained in:
fallenbagel
2026-03-02 04:37:57 +05:00
committed by GitHub
parent 001f6b1a34
commit 61e0377361
5 changed files with 38 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class NtfyAgent
const { embedPoster } = settings.notifications.agents.ntfy;
const topic = this.getSettings().options.topic;
const priority = 3;
const priority = this.getSettings().options.priority ?? 3;
const title = payload.event
? `${payload.event} - ${payload.subject}`

View File

@@ -298,6 +298,7 @@ export interface NotificationAgentNtfy extends NotificationAgentConfig {
password?: string;
authMethodToken?: boolean;
token?: string;
priority?: number;
};
}
@@ -531,6 +532,7 @@ class Settings {
options: {
url: '',
topic: '',
priority: 3,
},
},
},