fixed nil issue

This commit is contained in:
rulingcom committed 2025-05-20 00:02:49 +08:00
1 parent c3cf83c57f
commit cc5d9f4ff3
1 file changed
+2
+2
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" => '',