From 3a4338ded2394649074650c8f3c7ca40c809a329 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Mon, 9 Nov 2020 22:00:57 +0100 Subject: [PATCH] Fix --- telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.go b/telegram.go index 2ee5930..8053d5b 100644 --- a/telegram.go +++ b/telegram.go @@ -10,7 +10,7 @@ import ( const telegramBaseURL = "https://api.telegram.org/bot" func (p *post) tgPost() { - if !appConfig.Blogs[p.Blog].Telegram.Enabled { + if appConfig.Blogs[p.Blog].Telegram == nil || !appConfig.Blogs[p.Blog].Telegram.Enabled { return } var message bytes.Buffer