diff --git a/pkg/scraper/api_types_notifications.go b/pkg/scraper/api_types_notifications.go index 95a91af..7271263 100644 --- a/pkg/scraper/api_types_notifications.go +++ b/pkg/scraper/api_types_notifications.go @@ -75,7 +75,10 @@ func (api *API) MarkNotificationsAsRead() error { rslt := struct { Cursor string `json:"cursor"` }{} - api.do_http_POST("https://twitter.com/i/api/2/notifications/all/last_seen_cursor.json", "cursor=" + cursor, &rslt) + err := api.do_http_POST("https://twitter.com/i/api/2/notifications/all/last_seen_cursor.json", "cursor=" + cursor, &rslt) + if err != nil { + return err + } if rslt.Cursor == "" { panic("got blank cursor back...?") }