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

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/perkeep/20190523085227.GB3789%40mteege.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to