diff --git a/server/model/rdap-dns.json b/server/model/rdap-dns.json index 377badd9..c1e81609 100644 --- a/server/model/rdap-dns.json +++ b/server/model/rdap-dns.json @@ -1,6 +1,6 @@ { "description": "RDAP bootstrap file for Domain Name System registrations", - "publication": "2026-02-06T23:00:01Z", + "publication": "2026-02-10T00:00:01Z", "services": [ [["kg"], ["http://rdap.cctld.kg/"]], [["mg"], ["http://rdap.nic.mg/"]], @@ -62,6 +62,7 @@ ], [["blog"], ["https://rdap.blog.fury.ca/rdap/"]], [["ca"], ["https://rdap.ca.fury.ca/rdap/"]], + [["au"], ["https://rdap.cctld.au/rdap/"]], [["uz"], ["https://rdap.cctld.uz/"]], [["allfinanz"], ["https://rdap.centralnic.com/allfinanz/"]], [["art"], ["https://rdap.centralnic.com/art/"]], diff --git a/server/notification-providers/matrix.js b/server/notification-providers/matrix.js index 4669e00c..2e1ab22c 100644 --- a/server/notification-providers/matrix.js +++ b/server/notification-providers/matrix.js @@ -32,6 +32,10 @@ class Matrix extends NotificationProvider { body: msg, }; + if (notification.matrixUseTemplate) { + data.body = await this.renderTemplate(notification.matrixTemplate, msg, monitorJSON, heartbeatJSON); + } + config = this.getAxiosConfigWithProxy(config); await axios.put( `${notification.homeserverUrl}/_matrix/client/r0/rooms/${roomId}/send/m.room.message/${randomString}`, diff --git a/src/components/notifications/Matrix.vue b/src/components/notifications/Matrix.vue index 8fb52f6a..9bb89cce 100644 --- a/src/components/notifications/Matrix.vue +++ b/src/components/notifications/Matrix.vue @@ -47,14 +47,50 @@ . + +
+
+ + +
+ +
+ {{ $t("matrixUseTemplateDescription") }} +
+
+ + diff --git a/src/lang/en.json b/src/lang/en.json index 8b70bd8b..eee97046 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -491,6 +491,8 @@ "telegramProtectContentDescription": "If enabled, the bot messages in Telegram will be protected from forwarding and saving.", "telegramUseTemplate": "Use custom message template", "telegramUseTemplateDescription": "If enabled, the message will be sent using a custom template.", + "matrixUseTemplate": "Use custom message template", + "matrixUseTemplateDescription": "If enabled, the message will be sent using a custom template.", "telegramTemplateFormatDescription": "Telegram allows using different markup languages for messages, see Telegram {0} for specifc details.", "supportTelegramChatID": "Support Direct Chat / Group / Channel's Chat ID", "wayToGetTelegramChatID": "You can get your chat ID by sending a message to the bot and going to this URL to view the chat_id:",