Improve the URL field in Discord embeds

Instead of having two different ways of showing the URL field in Discord embeds, always show the raw address.
pull/2157/head
Mikkel-T 2022-10-02 19:29:33 +02:00
parent 9c1ad4f8c6
commit a42f7416b5
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Discord extends NotificationProvider {
}, },
{ {
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL", name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
value: monitorJSON["type"] === "push" ? "Heartbeat" : address.startsWith("http") ? "[Visit Service](" + address + ")" : address, value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
}, },
{ {
name: "Time (UTC)", name: "Time (UTC)",