ActivityDraft: detect language from content_html so it can strip links
This commit is contained in:
parent
728643b623
commit
f844c4ba13
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ defp sensitive(draft) do
|
||||||
defp language(draft) do
|
defp language(draft) do
|
||||||
language =
|
language =
|
||||||
Utils.get_valid_language(draft.params[:language]) ||
|
Utils.get_valid_language(draft.params[:language]) ||
|
||||||
LanguageDetector.detect(draft.full_payload)
|
LanguageDetector.detect(draft.content_html <> " " <> draft.summary)
|
||||||
|
|
||||||
%__MODULE__{draft | language: language}
|
%__MODULE__{draft | language: language}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue