logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 47ebbc4d212c0adffd212c66fc6b14b1a2ec24e8
parent daad35aeb95d0367d1525c60213db1ee6cede6bc
Author: Mark Felder <feld@feld.me>
Date:   Tue, 22 Jul 2025 11:50:01 -0700

Fix dialyzer error in status controller: Add catch-all pattern for translate function

Diffstat:

Mlib/pleroma/web/mastodon_api/controllers/status_controller.ex3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/web/mastodon_api/controllers/status_controller.ex b/lib/pleroma/web/mastodon_api/controllers/status_controller.ex @@ -584,6 +584,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do {:error, error} when error in [:unexpected_response, :quota_exceeded, :too_many_requests] -> render_error(conn, :service_unavailable, "Translation service not available") + + _ -> + render_error(conn, :internal_server_error, "Translation failed") end end