aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-28 14:06:32 -0600
committerAlex Gleason <alex@alexgleason.me>2022-01-28 14:06:32 -0600
commitac3426cbca19c7ca39ab927afc79f27865d32061 (patch)
treef65d45c2dbffa526c11528b71e709ca14e1c5d26 /test
parent5134e691f4f6582e807f49ea2760c0dd44dce805 (diff)
downloadpleroma-ac3426cbca19c7ca39ab927afc79f27865d32061.tar.gz
Transmogrifier: federate quotes with _misskey_quote field
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/activity_pub/transmogrifier_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs
index bae8f1d5e..21dd86f73 100644
--- a/test/pleroma/web/activity_pub/transmogrifier_test.exs
+++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs
@@ -333,7 +333,11 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
{:ok, modified} = Transmogrifier.prepare_outgoing(quote_post.data)
quoted_post = Object.normalize(quoted_post)
+
assert modified["object"]["quoteUrl"] == quoted_post.data["id"]
+
+ # Add Misskey's quote as a fallback
+ assert modified["object"]["_misskey_quote"] == quoted_post.data["id"]
end
end