Fix post command
All checks were successful
/ build (push) Successful in 1m33s

This commit is contained in:
Astra 2025-10-29 23:12:45 +00:00
parent e041d00226
commit 70b30a9313
2 changed files with 3 additions and 2 deletions

View file

@ -90,6 +90,7 @@ func main() {
}
tgpost, tgposterr := h.bsky.Bluesky.GetTelegramData(s[2])
if *delete {
if tgposterr == "" {
log.Printf("Found post %s in channel %d, deleting", s[2], tgpost.ChannelID)
@ -102,7 +103,7 @@ func main() {
return
}
if tgpost.ChannelID != 0 {
if tgposterr == "" {
log.Printf("Post %s already sent to channel %d, exiting", s[2], tgpost.ChannelID)
return
}