Unboosting after a double boost gives 500 error
I accidentally repeated a boost, and when I tried to unboost I get a 500 error. I checked the logs and found the following:
Oct 07 01:25:50 monads.online mix[5249]: 01:25:50.239 request_id=2ldjogd0dmv6u8ts4s00dmh1 [info] POST /api/v1/statuses/32986/unreblog
Oct 07 01:25:50 monads.online mix[5249]: 01:25:50.249 request_id=2ldjogd0dmv6u8ts4s00dmh1 [info] Sent 500 in 10ms
Oct 07 01:25:50 monads.online mix[5249]: 01:25:50.252 [error] #PID<0.10890.5> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Oct 07 01:25:50 monads.online mix[5249]: Server: monads.online:80 (http)
Oct 07 01:25:50 monads.online mix[5249]: Request: POST /api/v1/statuses/32986/unreblog
Oct 07 01:25:50 monads.online mix[5249]: ** (exit) an exception was raised:
Oct 07 01:25:50 monads.online mix[5249]: ** (Ecto.MultipleResultsError) expected at most one result but got 2 in query:
Oct 07 01:25:50 monads.online mix[5249]: from a in Pleroma.Activity,
Oct 07 01:25:50 monads.online mix[5249]: where: a.actor == ^"https://monads.online/users/thatcosmonaut",
Oct 07 01:25:50 monads.online mix[5249]: where: fragment("coalesce((?)->'object'->>'id', (?)->>'object') = ?", a.data, a.data, ^"https://cryptids.online/users/TheCryptKeeper/statuses/100852535987820479"),
Oct 07 01:25:50 monads.online mix[5249]: where: fragment("(?)->>'type' = 'Announce'", a.data)
Oct 07 01:25:50 monads.online mix[5249]: (ecto) lib/ecto/repo/queryable.ex:73: Ecto.Repo.Queryable.one/4
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/activity_pub/activity_pub.ex:236: Pleroma.Web.ActivityPub.ActivityPub.unannounce/4
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:369: Pleroma.Web.MastodonAPI.MastodonAPIController.unreblog_status/2
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:1: Pleroma.Web.MastodonAPI.MastodonAPIController.action/2
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/mastodon_api/mastodon_api_controller.ex:1: Pleroma.Web.MastodonAPI.MastodonAPIController.phoenix_controller_pipeline/2
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/endpoint.ex:1: Pleroma.Web.Endpoint.instrument/4
Oct 07 01:25:50 monads.online mix[5249]: (phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
Oct 07 01:25:50 monads.online mix[5249]: (pleroma) lib/pleroma/web/endpoint.ex:1: Pleroma.Web.Endpoint.plug_builder_call/2
Edited by Evan Hemsley