From 499beb4484031703f029511787163e3a5bb6e47a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 7 Sep 2016 18:17:15 +0200 Subject: UI for uploading media attachments (and cancelling them) Mostly resolves #8, though attachments are still not displayed in public view --- app/services/post_status_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/post_status_service.rb') diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index ee2136e3f..930e7ec9e 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -19,7 +19,7 @@ class PostStatusService < BaseService def attach_media(status, media_ids) return if media_ids.nil? || !media_ids.is_a?(Enumerable) - media = MediaAttachment.where(status_id: nil).where(id: media_ids.take(2).map { |id| id.to_i }) + media = MediaAttachment.where(status_id: nil).where(id: media_ids.take(4).map { |id| id.to_i }) media.update(status_id: status.id) end -- cgit