mirror of https://github.com/jlelse/GoBlog
Fix
This commit is contained in:
parent
78c2ad722b
commit
3a4338ded2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue