ActivityDraft: allow quoting

This commit is contained in:
Alex Gleason 2022-01-22 22:15:54 -06:00 committed by tusooa
commit d4fea8b559
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
3 changed files with 29 additions and 1 deletions

View file

@ -796,6 +796,18 @@ defmodule Pleroma.Web.CommonAPITest do
scheduled_at: expires_at
)
end
test "it allows allows quote posting" do
user = insert(:user)
{:ok, quoted} = CommonAPI.post(user, %{status: "Hello world"})
{:ok, quote_post} = CommonAPI.post(user, %{status: "nice post", quote_id: quoted.id})
quoted = Object.normalize(quoted)
quote_post = Object.normalize(quote_post)
assert quote_post.data["quoteUrl"] == quoted.data["id"]
end
end
describe "reactions" do