mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
fix no-language-specified federation
This commit is contained in:
parent
22068f0853
commit
78c44f31ca
1 changed files with 4 additions and 1 deletions
|
@ -145,7 +145,10 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do
|
|||
end
|
||||
end
|
||||
|
||||
defp language(draft), do: draft
|
||||
defp language(%{content_html: content} = draft) do
|
||||
# Use a default language if no language is specified
|
||||
%__MODULE__{draft | content_map: %{"en" => content}}
|
||||
end
|
||||
|
||||
defp visibility(%{params: params} = draft) do
|
||||
case CommonAPI.get_visibility(params, draft.in_reply_to, draft.in_reply_to_conversation) do
|
||||
|
|
Loading…
Reference in a new issue