small fix for remote
This commit is contained in:
parent
73ad4a5eb4
commit
ef37c0dd27
|
@ -295,7 +295,7 @@ class AnnouncementsController < ApplicationController
|
|||
|
||||
request = OrbitHelper.request
|
||||
if announcement["subtitle_translations"].present?
|
||||
meta_desc = announcement["subtitle_translations"][locale] != "" ? announcement["subtitle_translations"][locale] : announcement["text_translations"][locale][0..200]
|
||||
meta_desc = announcement["subtitle_translations"][locale] != "" ? announcement["subtitle_translations"][locale] : announcement["text_translations"][locale][0..200] rescue ""
|
||||
else
|
||||
meta_desc = ""
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue