diff options
author | Alex Gleason <alex@alexgleason.me> | 2022-01-22 22:15:54 -0600 |
---|---|---|
committer | tusooa <tusooa@kazv.moe> | 2023-09-13 19:19:03 -0400 |
commit | d4fea8b5595e9e6cd37bdb1cee21285f905693f1 (patch) | |
tree | 9de3fd1897ebab9df9d2abda76eb99dde5222609 /test | |
parent | 6ac19c3999c543e5a26bbf04932a6a7aaa447b99 (diff) | |
download | pleroma-d4fea8b5595e9e6cd37bdb1cee21285f905693f1.tar.gz pleroma-d4fea8b5595e9e6cd37bdb1cee21285f905693f1.zip |
ActivityDraft: allow quoting
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/common_api_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs index 0d76d6581..09df27acb 100644 --- a/test/pleroma/web/common_api_test.exs +++ b/test/pleroma/web/common_api_test.exs @@ -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 |