logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 4c537534ad5089c9efd75087b3cbfaaa71404b6e
parent 73b446bb07643ae9c98d1bb547f6ecbc3f2883f0
Author: Lain Soykaf <lain@lain.com>
Date:   Wed, 24 Dec 2025 13:33:03 +0400

NoteHandlingTest: Replies go on an object, not an activity.

Diffstat:

Mtest/pleroma/web/activity_pub/transmogrifier/note_handling_test.exs5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/pleroma/web/activity_pub/transmogrifier/note_handling_test.exs b/test/pleroma/web/activity_pub/transmogrifier/note_handling_test.exs @@ -698,9 +698,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.NoteHandlingTest do test "still provides reply collection id even if activity doesn't have replies yet" do data = Jason.decode!(File.read!("test/fixtures/mastodon-post-activity.json")) - modified = Transmogrifier.set_replies(data) + object = data["object"] |> Map.delete("replies") + modified = Transmogrifier.set_replies(object) - refute data["replies"] + refute object["replies"] assert modified["replies"] assert match?(%{"id" => "http" <> _, "totalItems" => 0}, modified["replies"]) # first page should be omitted if there are no entries anyway