Selaa lähdekoodia

article limited to 8

master
Patrick Peng Sun 8 vuotta sitten
vanhempi
commit
66acd25049
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      kfsend.go

+ 2
- 2
kfsend.go Näytä tiedosto

@@ -194,8 +194,8 @@ func kfSendNews(toUser, title, description string, articles []sendNewsArticle) {
for _, v := range articles {
a = append(a, v)
count++
if count >= 10 {
log.Printf("too many article, only take 10")
if count >= 8 {
log.Printf("too many article, only take 8")
break
}
}

Loading…
Peruuta
Tallenna