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"
|
const telegramBaseURL = "https://api.telegram.org/bot"
|
||||||
|
|
||||||
func (p *post) tgPost() {
|
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
|
return
|
||||||
}
|
}
|
||||||
var message bytes.Buffer
|
var message bytes.Buffer
|
||||||
|
|
Loading…
Reference in New Issue