cmd/madon.go
changeset 267 5b91a65ba95a
parent 239 605a00e9d1ab
child 268 4dd196a4ee7c
--- a/cmd/madon.go	Thu Sep 22 16:37:07 2022 +0200
+++ b/cmd/madon.go	Mon Jan 23 16:39:02 2023 +0000
@@ -6,7 +6,6 @@
 package cmd
 
 import (
-	"strconv"
 	"strings"
 
 	"github.com/McKael/madon/v2"
@@ -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
 }