update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
f3e25a0846
commit
e6233bb494
@ -66,6 +66,7 @@ docker run --rm \
|
|||||||
-e PLUGIN_VENUE=24.9163213,121.1424972,title,address \
|
-e PLUGIN_VENUE=24.9163213,121.1424972,title,address \
|
||||||
-e PLUGIN_VIDEO=tests/video.mp4 \
|
-e PLUGIN_VIDEO=tests/video.mp4 \
|
||||||
-e PLUGIN_DEBUG=true \
|
-e PLUGIN_DEBUG=true \
|
||||||
|
-e PLUGIN_ONLY_MATCH_EMAIL=false \
|
||||||
-e PLUGIN_FORMAT=markdown \
|
-e PLUGIN_FORMAT=markdown \
|
||||||
-e DRONE_REPO_OWNER=appleboy \
|
-e DRONE_REPO_OWNER=appleboy \
|
||||||
-e DRONE_REPO_NAME=go-hello \
|
-e DRONE_REPO_NAME=go-hello \
|
||||||
|
@ -139,7 +139,7 @@ func convertLocation(value string) (Location, bool) {
|
|||||||
func parseTo(to []string, authorEmail string, matchEmail bool) []int64 {
|
func parseTo(to []string, authorEmail string, matchEmail bool) []int64 {
|
||||||
var emails []int64
|
var emails []int64
|
||||||
var ids []int64
|
var ids []int64
|
||||||
attachChat := true
|
attachEmail := true
|
||||||
|
|
||||||
for _, value := range to {
|
for _, value := range to {
|
||||||
idArray := trimElement(strings.Split(value, ":"))
|
idArray := trimElement(strings.Split(value, ":"))
|
||||||
@ -157,14 +157,14 @@ func parseTo(to []string, authorEmail string, matchEmail bool) []int64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emails = append(emails, id)
|
emails = append(emails, id)
|
||||||
attachChat = false
|
attachEmail = false
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
ids = append(ids, id)
|
ids = append(ids, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
if matchEmail == true && attachChat == false {
|
if matchEmail == true && attachEmail == false {
|
||||||
return emails
|
return emails
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user