about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/services/post_status_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index d8202bea8..ec2b90e07 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -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