twitter_api fails with malformed mentions
I did a post that mentioned all my followings (https://social.beepboop.ga/notice/1717099), which included ones like this https://social.beepboop.ga/users/rt@bot.undernet.uy
. The twitter_api fails with it, but not the mastodon one.
[error] #PID<0.22387.9> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: social.beepboop.ga:80 (http)
Request: GET /api/statuses/show/1717099.json
** (exit) an exception was raised:
** (MatchError) no match of right hand side value: ["rt", "bot.undernet.uy", "social.beepboop.ga"]
(pleroma) lib/pleroma/user.ex:409: Pleroma.User.get_by_nickname/1
(pleroma) lib/pleroma/web/twitter_api/views/activity_view.ex:100: Pleroma.Web.TwitterAPI.ActivityView.
get_user/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(pleroma) lib/pleroma/web/twitter_api/views/activity_view.ex:249: Pleroma.Web.TwitterAPI.ActivityView.
render/2
(phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
(phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
(pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:5: Pleroma.Web.TwitterAPI.Controller.a
ction/2
(pleroma) lib/pleroma/web/twitter_api/twitter_api_controller.ex:5: Pleroma.Web.TwitterAPI.Controller.p
hoenix_controller_pipeline/2
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:275: Phoenix.Router.__call__/1
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.plug_builder_call/2
(pleroma) lib/plug/debugger.ex:122: Pleroma.Web.Endpoint."call (overridable 3)"/2
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.call/2
(plug_cowboy) lib/plug/cowboy/handler.ex:18: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) /data/pleroma/backend/deps/cowboy/src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4