From eec0dc46a6d6782f6aebdc759d4822ef17fd57a2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 5 Sep 2016 18:39:53 +0200 Subject: PostStatusService can attach media to status, ProcessFeedService likewise --- app/controllers/api/statuses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api') diff --git a/app/controllers/api/statuses_controller.rb b/app/controllers/api/statuses_controller.rb index d5d7a062f..0ef56580c 100644 --- a/app/controllers/api/statuses_controller.rb +++ b/app/controllers/api/statuses_controller.rb @@ -7,7 +7,7 @@ class Api::StatusesController < ApiController end def create - @status = PostStatusService.new.(current_user.account, params[:status], params[:in_reply_to_id].blank? ? nil : Status.find(params[:in_reply_to_id])) + @status = PostStatusService.new.(current_user.account, params[:status], params[:in_reply_to_id].blank? ? nil : Status.find(params[:in_reply_to_id]), params[:media_ids]) render action: :show end -- cgit