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
|
||||
language =
|
||||
Utils.get_valid_language(draft.params[:language]) ||
|
||||
LanguageDetector.detect(draft.full_payload)
|
||||
LanguageDetector.detect(draft.content_html <> " " <> draft.summary)
|
||||
|
||||
%__MODULE__{draft | language: language}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue