Skip to content
Snippets Groups Projects
Commit 8ebed7fc authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix #1957 - WhatLanguage can return null. Fallback to 'en' (#1959)

parent 8f2ed79a
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class PostStatusService < BaseService
end
def detect_language(text)
WhatLanguage.new(:all).language_iso(text)
WhatLanguage.new(:all).language_iso(text) || 'en'
end
def process_mentions_service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment