fix error
This commit is contained in:
parent
919785960d
commit
aee56f782c
|
@ -735,7 +735,7 @@ class AnnouncementsController < ApplicationController
|
|||
desc = (desc.nil? || desc == "" ? "announcement image" : desc)
|
||||
|
||||
request = OrbitHelper.request
|
||||
meta_desc = announcement.subtitle.nil? || announcement.subtitle == "" ? announcement.text[0..200] : announcement.subtitle
|
||||
meta_desc = announcement.subtitle.nil? || announcement.subtitle == "" ? announcement.text.to_s[0..200] : announcement.subtitle
|
||||
OrbitHelper.render_meta_tags([{"property" => "og:title", "content" => announcement.title},{"property" => "og:site_name", "content" => Site.first.title},{"property" => "og:url", "content" => request.original_url.split("?").first},{"property" => "og:description", "content" => meta_desc},{"property" => "og:image", "content" => "#{request.base_url}#{announcement.image.url}"},{"property" => "og:type", "content" => "Article"}])
|
||||
|
||||
subtitle_ann = nil
|
||||
|
|
Loading…
Reference in New Issue