diff --git a/app/services/edit_status_service.rb b/app/services/edit_status_service.rb index 013cd513..f90f0312 100644 --- a/app/services/edit_status_service.rb +++ b/app/services/edit_status_service.rb @@ -65,7 +65,7 @@ class EditStatusService < BaseService raise GabSocial::ValidationError, I18n.t('media_attachments.validations.too_many') if @options[:media_ids].size > 4 - @media = @account.media_attachments.where(status_id: nil).where(id: @options[:media_ids].take(4).map(&:to_i)) + @media = @account.media_attachments.where(id: @options[:media_ids].take(4).map(&:to_i)) raise GabSocial::ValidationError, I18n.t('media_attachments.validations.images_and_video') if @media.size > 1 && @media.find(&:video?) end