Hi,
the mastodon importer fails with 'strconv.ParseInt: parsing "":
invalid syntax'. The problem is the outdated
github.com/mattn/go-mastodon. The problematic function is in
mastodon.go:
func getPaginationID(rawurl, key string) (ID, error) {
u, err := url.Parse(rawurl)
if err != nil {
return "", err
}
id, err := strconv.ParseInt(u.Query().Get(key), 10, 64)
if err != nil {
return "", err
}
return ID(fmt.Sprint(id)), nil
}
which is in upstream:
func getPaginationID(rawurl, key string) (ID, error) {
u, err := url.Parse(rawurl)
if err != nil {
return "", err
}
return ID(u.Query().Get(key)), nil
}
Maybe someone can update the perkeepd repository.
Regards
Matthias