summaryrefslogtreecommitdiff
path: root/internal/notify.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-01 15:12:32 +0300
committerPaul Buetow <paul@buetow.org>2025-06-01 15:12:32 +0300
commit49fe110a6263c64d34c95024fd1ffa7352c63006 (patch)
tree1d827ee5d0d71e07a7fe3e8f9325936fa1d0a5cd /internal/notify.go
parent9fe227b79ea15ffcde8bf175ff879f991d183eab (diff)
more on federated
Diffstat (limited to 'internal/notify.go')
-rw-r--r--internal/notify.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/notify.go b/internal/notify.go
index a89035b..3a294b2 100644
--- a/internal/notify.go
+++ b/internal/notify.go
@@ -7,6 +7,10 @@ import (
)
func notify(conf config, subject, body string) error {
+ if conf.SMTPDisable {
+ log.Println("Notification disabled")
+ return nil
+ }
log.Println("notify", subject, body)
headers := map[string]string{