quote support to status creation
This commit is contained in:
parent
318ab7beb6
commit
6b583577f4
|
@ -55,7 +55,8 @@ class Api::V1::StatusesController < Api::BaseController
|
||||||
application: doorkeeper_token.application,
|
application: doorkeeper_token.application,
|
||||||
poll: status_params[:poll],
|
poll: status_params[:poll],
|
||||||
idempotency: request.headers['Idempotency-Key'],
|
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
|
render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
|
||||||
end
|
end
|
||||||
|
@ -82,6 +83,7 @@ class Api::V1::StatusesController < Api::BaseController
|
||||||
params.permit(
|
params.permit(
|
||||||
:status,
|
:status,
|
||||||
:in_reply_to_id,
|
:in_reply_to_id,
|
||||||
|
:quote_of_id,
|
||||||
:sensitive,
|
:sensitive,
|
||||||
:spoiler_text,
|
:spoiler_text,
|
||||||
:visibility,
|
:visibility,
|
||||||
|
|
|
@ -164,6 +164,7 @@ class PostStatusService < BaseService
|
||||||
{
|
{
|
||||||
text: @text,
|
text: @text,
|
||||||
group_id: @options[:group_id],
|
group_id: @options[:group_id],
|
||||||
|
quote_of_id: @options[:quote_of_id],
|
||||||
media_attachments: @media || [],
|
media_attachments: @media || [],
|
||||||
thread: @in_reply_to,
|
thread: @in_reply_to,
|
||||||
poll_attributes: poll_attributes,
|
poll_attributes: poll_attributes,
|
||||||
|
|
Loading…
Reference in New Issue