update readme.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-11-09 12:23:19 +08:00
parent f3e25a0846
commit e6233bb494
2 changed files with 4 additions and 3 deletions

View File

@ -66,6 +66,7 @@ docker run --rm \
-e PLUGIN_VENUE=24.9163213,121.1424972,title,address \
-e PLUGIN_VIDEO=tests/video.mp4 \
-e PLUGIN_DEBUG=true \
-e PLUGIN_ONLY_MATCH_EMAIL=false \
-e PLUGIN_FORMAT=markdown \
-e DRONE_REPO_OWNER=appleboy \
-e DRONE_REPO_NAME=go-hello \

View File

@ -139,7 +139,7 @@ func convertLocation(value string) (Location, bool) {
func parseTo(to []string, authorEmail string, matchEmail bool) []int64 {
var emails []int64
var ids []int64
attachChat := true
attachEmail := true
for _, value := range to {
idArray := trimElement(strings.Split(value, ":"))
@ -157,14 +157,14 @@ func parseTo(to []string, authorEmail string, matchEmail bool) []int64 {
}
emails = append(emails, id)
attachChat = false
attachEmail = false
continue
}
ids = append(ids, id)
}
if matchEmail == true && attachChat == false {
if matchEmail == true && attachEmail == false {
return emails
}