diff --git a/app/controllers/inbox_controller.rb b/app/controllers/inbox_controller.rb index 16c47099..f6a1aff2 100644 --- a/app/controllers/inbox_controller.rb +++ b/app/controllers/inbox_controller.rb @@ -5,7 +5,7 @@ class InboxController < ApplicationController after_action :mark_inbox_entries_as_read, only: %i[show] - def show # rubocop:disable Metrics/MethodLength, Metrics/AbcSize + def show # rubocop:disable Metrics/MethodLength find_author find_inbox_entries diff --git a/lib/use_case/question/create.rb b/lib/use_case/question/create.rb index a7c1345d..17987a1d 100644 --- a/lib/use_case/question/create.rb +++ b/lib/use_case/question/create.rb @@ -27,8 +27,8 @@ module UseCase status: 201, resource: question, extra: { - inbox: - } + inbox:, + }, } end diff --git a/lib/use_case/question/create_followers.rb b/lib/use_case/question/create_followers.rb index a6bddb0f..04fe3844 100644 --- a/lib/use_case/question/create_followers.rb +++ b/lib/use_case/question/create_followers.rb @@ -9,9 +9,9 @@ module UseCase def call question = ::Question.create!( - content: content, + content:, author_is_anonymous: false, - author_identifier: author_identifier, + author_identifier:, user: source_user, direct: false ) @@ -23,7 +23,7 @@ module UseCase { status: 201, - resource: question + resource: question, } end