diff --git a/pkg/scraper/api_types_notifications.go b/pkg/scraper/api_types_notifications.go index 7271263..5d0862d 100644 --- a/pkg/scraper/api_types_notifications.go +++ b/pkg/scraper/api_types_notifications.go @@ -75,7 +75,7 @@ func (api *API) MarkNotificationsAsRead() error { rslt := struct { Cursor string `json:"cursor"` }{} - err := 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 }