fix error

This commit is contained in:
邱博亞 2022-04-26 11:51:44 +08:00
parent 18c2254bb9
commit e74d54ad75
1 changed files with 4 additions and 2 deletions

View File

@ -714,7 +714,8 @@ class AnnouncementsController < ApplicationController
"comments" => [],
"show_comment_flag" => '',
"impressionist" => nil,
"url_to_edit"=> ''
"url_to_edit"=> '',
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
}
end
@ -809,7 +810,8 @@ class AnnouncementsController < ApplicationController
"comments" => announcement.comments,
"show_comment_flag" => show_comment_flag,
"impressionist" => (announcement.is_preview ? nil : announcement),
"url_to_edit"=>url_to_edit
"url_to_edit"=>url_to_edit,
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
}
end