Skip to content

Commit

Permalink
fix: Source lang should be auto by default
Browse files Browse the repository at this point in the history
Just in case no sl broke it
  • Loading branch information
null2264 committed Oct 13, 2023
1 parent 1ff1437 commit d3571c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pleroma/akkoma/translators/voldy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ defmodule Pleroma.Akkoma.Translators.Voldy do
)
end

defp maybe_add_source(opts, nil), do: opts
defp maybe_add_source(opts, nil), do: Map.put(opts, :sl, "auto")
defp maybe_add_source(opts, lang), do: Map.put(opts, :sl, lang)
end

0 comments on commit d3571c5

Please sign in to comment.