summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-28 14:06:32 -0600
committertusooa <tusooa@kazv.moe>2023-09-13 19:19:04 -0400
commit3c8319fe9f7a7c793f8fdc347be2015190981e33 (patch)
tree0fdda3dcf158c7b9fa6fec8df041da13cc0df3dd /test
parentcf8e4258830e3f362ab1e54238d622f6b2056502 (diff)
downloadpleroma-3c8319fe9f7a7c793f8fdc347be2015190981e33.tar.gz
pleroma-3c8319fe9f7a7c793f8fdc347be2015190981e33.zip
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 824398e38..8c7e0a4c9 100644
--- a/test/pleroma/web/activity_pub/transmogrifier_test.exs
+++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs
@@ -382,7 +382,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