This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix
#1957
- WhatLanguage can return null. Fallback to 'en' (
#1959
)
closed-social-glitch-2
Eugen
7 years ago
committed by
GitHub
parent
8f2ed79a0b
commit
8ebed7fc68
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/post_status_service.rb
+ 1
- 1
app/services/post_status_service.rb
View File
@ -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
Write
Preview
Loading…
Cancel
Save