diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-09 17:34:48 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-09 17:34:48 +0300 |
commit | 24e49d14f287b0daf8c2977f2228be09139e4bf3 (patch) | |
tree | f3a220c3afef989da503215c2991eb9687431791 /lib | |
parent | 6ea3c06d8d42cd92b23c6de2d041db1cfea63b5a (diff) | |
download | pleroma-24e49d14f287b0daf8c2977f2228be09139e4bf3.tar.gz |
[#1505] Removed wrapping of reply URIs into `first` element, added comments to transmogrifier tests.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/transmogrifier.ex | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 343228b37..6f09b4994 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -935,19 +935,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do end defp set_replies(obj, replies_uris) do - # Note: stubs (Mastodon doesn't make separate requests via those URIs in FetchRepliesService) - masto_replies_uri = nil - masto_replies_next_page_uri = nil - replies_collection = %{ "type" => "Collection", - "id" => masto_replies_uri, - "first" => %{ - "type" => "Collection", - "part_of" => masto_replies_uri, - "items" => replies_uris, - "next" => masto_replies_next_page_uri - } + "items" => replies_uris } Map.merge(obj, %{"replies" => replies_collection}) |