fetches now but consumes all memory and dies :(

This commit is contained in:
Jeffrey Paul 2019-12-14 08:43:34 -08:00
parent 7ae15aa18d
commit 135adaab04
2 changed files with 8 additions and 1 deletions

View File

@ -433,6 +433,8 @@ func (i *instance) fetchRecentToots() error {
Msgf("unable to parse recent toot list")
i.registerError()
i.Event("TOOT_FETCH_ERROR")
fmt.Printf(string(body))
return err
}

View File

@ -2,6 +2,7 @@ package feta
import "time"
import "fmt"
import "encoding/json"
// thank fuck for https://mholt.github.io/json-to-go/ otherwise
// this would have been a giant pain in the dick
@ -92,7 +93,10 @@ func (atl *apTootList) String() string {
return fmt.Sprintf("%+v", atl)
}
type apTootList []struct {
type apTootList []json.RawMessage
/*
type parsedToot struct {
Account struct {
Acct string `json:"acct"`
Avatar string `json:"avatar"`
@ -152,3 +156,4 @@ type apTootList []struct {
URL string `json:"url"`
Visibility string `json:"visibility"`
}
*/