fetches now but consumes all memory and dies :(
This commit is contained in:
parent
7ae15aa18d
commit
135adaab04
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"`
|
||||
}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user