Code review
ci/woodpecker/pr/woodpecker Pipeline failed Details

* Add Changelog and description.exs
* Also cleaned up some code that was left behind when still poking at things a bit
This commit is contained in:
ilja 2022-12-17 13:22:23 +01:00
parent d1bb480146
commit d5b3d9104d
3 changed files with 26 additions and 1 deletions

View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Prometheus metrics exporting from `/api/v1/akkoma/metrics`
- Ability to alter http pool size
- Translation of statuses via ArgosTranslate
### Removed
- Non-finch HTTP adapters

View File

@ -3443,5 +3443,30 @@ config :pleroma, :config_description, [
suggestion: [nil]
}
]
},
%{
group: :pleroma,
key: :argos_translate,
type: :group,
description: "ArgosTranslate Settings.",
children: [
%{
key: :command_argos_translate,
type: :string,
description: "command for `argos-translate`. Can be the command if it's in your PATH, or the full path to the file.",
suggestion: ["argos-translate"]
},
%{
key: :command_argospm,
type: :string,
description: "command for `argospm`. Can be the command if it's in your PATH, or the full path to the file.",
suggestion: ["argospm"]
},
%{
key: :strip_html,
type: :boolean,
description: "Strip html from the post before translating it."
}
]
}
]

View File

@ -31,7 +31,6 @@ defmodule Pleroma.Akkoma.Translators.ArgosTranslate do
|> String.split("\n", trim: true)
|> Enum.map(fn
"translate-" <> l -> String.split(l, "_")
_ -> ""
end)
source_langs =