diff --git a/app/controllers/api/v1/accounts/inboxes_controller.rb b/app/controllers/api/v1/accounts/inboxes_controller.rb index 463a08bfb..1720ee692 100644 --- a/app/controllers/api/v1/accounts/inboxes_controller.rb +++ b/app/controllers/api/v1/accounts/inboxes_controller.rb @@ -124,6 +124,10 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController end def get_channel_attributes(channel_type) - channel_type.constantize::EDITABLE_ATTRS.presence || [] + if channel_type.constantize.const_defined?('EDITABLE_ATTRS') + channel_type.constantize::EDITABLE_ATTRS.presence + else + [] + end end end