Commit 6b583577 authored by 2458773093's avatar 2458773093

quote support to status creation

parent 318ab7be
......@@ -55,7 +55,8 @@ class Api::V1::StatusesController < Api::BaseController
application: doorkeeper_token.application,
poll: status_params[:poll],
idempotency: request.headers['Idempotency-Key'],
group_id: status_params[:group_id])
group_id: status_params[:group_id],
quote_of_id: status_params[:quote_of_id])
render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
end
......@@ -82,6 +83,7 @@ class Api::V1::StatusesController < Api::BaseController
params.permit(
:status,
:in_reply_to_id,
:quote_of_id,
:sensitive,
:spoiler_text,
:visibility,
......
......@@ -164,6 +164,7 @@ class PostStatusService < BaseService
{
text: @text,
group_id: @options[:group_id],
quote_of_id: @options[:quote_of_id],
media_attachments: @media || [],
thread: @in_reply_to,
poll_attributes: poll_attributes,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment