Some statuses fails to render
Pleroma rev.6d33c89c
If status contains an url that includes quotes, Pleroma will throw an exception in the logs and will not display it.
20:38:08.248 request_id=FdtuCwEhC7p2U2oAAKLh [error] Internal server error: %Cachex.ExecutionError{message: "no match of right hand side value: \"&sl=auto&tl=en&dt=t\\\"\""}
20:38:08.250 [error] #PID<0.10558.0> running Pleroma.Web.Endpoint (connection #PID<0.10557.0>, stream id 1) terminated
Server: social.net.ua:80 (http)
Request: GET /api/v1/statuses/9p5sJKK4Bvb5UKL9DU
** (exit) an exception was raised:
** (Cachex.ExecutionError) no match of right hand side value: "&sl=auto&tl=en&dt=t\""
(cachex) lib/cachex.ex:1447: Cachex.unwrap_unsafe/1
(pleroma) lib/pleroma/web/rich_media/helpers.ex:56: Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity/1
(pleroma) lib/pleroma/web/mastodon_api/views/status_view.ex:234: Pleroma.Web.MastodonAPI.StatusView.render/2
(phoenix) lib/phoenix/view.ex:410: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
(phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
(pleroma) lib/pleroma/web/controller_helper.ex:81: Pleroma.Web.ControllerHelper.try_render/3
Screenshot of expected result:
And actual result:
The bug was introduced somewhere between 6d33c89c..ca1acfa3 commits.
Edited by Dmytro Poltavchenko