Cannot paginate user feed
When I try to paginate my individual feed, I get a 500, with the following error
Aug 09 05:00:02 pleroma mix[11162]: Request: GET /api/qvitter/statuses/user_timeline.json?user_id=1&max_id=64196
Aug 09 05:00:02 pleroma mix[11162]: ** (exit) an exception was raised:
Aug 09 05:00:02 pleroma mix[11162]: ** (Postgrex.Error) ERROR XX001 (data_corrupted): invalid page in block 1 of relation base/18885/19135
Aug 09 05:00:02 pleroma mix[11162]: (ecto) lib/ecto/adapters/sql.ex:440: Ecto.Adapters.SQL.execute_or_reset/7
Aug 09 05:00:02 pleroma mix[11162]: (ecto) lib/ecto/repo/queryable.ex:133: Ecto.Repo.Queryable.execute/5
Aug 09 05:00:02 pleroma mix[11162]: (ecto) lib/ecto/repo/queryable.ex:37: Ecto.Repo.Queryable.all/4
Aug 09 05:00:02 pleroma mix[11162]: (pleroma) lib/pleroma/web/activity_pub/activity_pub.ex:521: Pleroma.Web.ActivityPub.ActivityPub.fetch_activities/2
Aug 09 05:00:02 pleroma mix[11162]: (pleroma) lib/pleroma/web/activity_pub/activity_pub.ex:365: Pleroma.Web.ActivityPub.ActivityPub.fetch_user_activities/3
Aug 09 05:00:02 pleroma mix[11162]: (pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:102: Pleroma.Web.TwitterAPI.Controller.user_timeline/2
Aug 09 05:00:02 pleroma mix[11162]: (pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:1: Pleroma.Web.TwitterAPI.Controller.action/2
Aug 09 05:00:02 pleroma mix[11162]: (pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:1: Pleroma.Web.TwitterAPI.Controller.phoenix_controller_pipeline/2
Assuming I feed in the last id of the current page's data, this happens. It also happens for the second-last id. If, however, I feed in the very first id (which I'm assuming would effectively offset the page by 1), it works. I'm guessing this means there's a post that is throwing an error in the bunch but... I'm not sure what would cause this latently, since the feed over time has had no issues.
Edit: FWIW same exact error on masto front-end with that API
Edited by Austin