fixed nil issue

This commit is contained in:
rulingcom 2025-05-20 00:02:49 +08:00
parent c3cf83c57f
commit cc5d9f4ff3
1 changed files with 2 additions and 0 deletions

View File

@ -730,12 +730,14 @@ class CurationsController < ApplicationController
}
end
end
sections.compact!
if !announcement.deadline.nil? && announcement.deadline < Time.now
return {
"tags" => [],
"bulletin_files" => [],
"bulletin_links" => [],
"sections" => sections,
"data" => {
"title" => announcement.title,
"subtitle_ann" => '',