This commit is contained in:
邱博亞 2022-04-26 11:53:46 +08:00
parent e74d54ad75
commit 9c8f032e1c
1 changed files with 2 additions and 2 deletions

View File

@ -715,7 +715,7 @@ class AnnouncementsController < ApplicationController
"show_comment_flag" => '',
"impressionist" => nil,
"url_to_edit"=> '',
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
"redirect_to" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
}
end
@ -811,7 +811,7 @@ class AnnouncementsController < ApplicationController
"show_comment_flag" => show_comment_flag,
"impressionist" => (announcement.is_preview ? nil : announcement),
"url_to_edit"=>url_to_edit,
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
"redirect_to" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
}
end