fix(backend): catch all remaining errors in the update_post function

Solves the case where a post is updated without a title

Fixes #1790
This commit is contained in:
Massedil
2025-06-17 17:50:47 +02:00
parent bd43815fbf
commit dcf9f82156

View File

@@ -173,6 +173,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Post do
{:member, _} ->
{:error, dgettext("errors", "Profile is not member of group")}
_ ->
{:error, dgettext("errors", "An error occured while updating your post")}
end
end