We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4cd03 commit 377bf65Copy full SHA for 377bf65
1 file changed
server/lib/notifications/agents/ntfy.ts
@@ -95,15 +95,21 @@ class NtfyAgent
95
click = `${applicationUrl}/${payload.media.mediaType}/${payload.media.tmdbId}`;
96
}
97
98
- return {
+ const ntfyPayload: Record<string, unknown> = {
99
topic,
100
priority,
101
title,
102
message,
103
markdown: true,
104
- attach,
105
- click,
106
};
+ if (attach) {
+ ntfyPayload.attach = attach;
107
+ }
108
+ if (click) {
109
+ ntfyPayload.click = click;
110
111
+
112
+ return ntfyPayload;
113
114
115
public shouldSend(): boolean {
0 commit comments