diff -r 80973a656b81 -r 4dd196a4ee7c cmd/madon.go --- a/cmd/madon.go Sat Feb 04 11:00:55 2023 +0000 +++ b/cmd/madon.go Sat Feb 04 13:17:17 2023 +0100 @@ -6,7 +6,6 @@ package cmd import ( - "strconv" "strings" "github.com/McKael/madon/v3" @@ -104,18 +103,16 @@ } // splitIDs splits a list of IDs into an int64 array -func splitIDs(ids string) (list []int64, err error) { - var i int64 +func splitIDs(ids string) (list []madon.ActivityID, err error) { if ids == "" { return } l := strings.Split(ids, ",") for _, s := range l { - i, err = strconv.ParseInt(s, 10, 64) - if err != nil { + if s == "" { return } - list = append(list, i) + list = append(list, s) } return }