diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 602834f..56225bc 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -50,8 +50,8 @@ class AnnouncementsController < ApplicationController "status" => status["name"], "status-class" => "status-#{status['classname']}" } - author = User.find(a.create_user_id).member_profile.name rescue "" end + author = User.find(a.create_user_id).member_profile.name rescue "" { "title" => a.title, "subtitle" => a.subtitle,