commit: 4984aaa18398c22bef8a8de9d0ad271f474e076b
parent 0b498833cd6a84d643f085bb985efdf714e59c63
Author: Lain Soykaf <lain@lain.com>
Date: Thu, 8 Jan 2026 14:06:24 +0400
Streamer: Fix Marker streaming bug, fix caching in tests.
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/web/streamer.ex b/lib/pleroma/web/streamer.ex
@@ -300,7 +300,7 @@ defmodule Pleroma.Web.Streamer do
end)
end
- defp do_stream("user", item) do
+ defp do_stream("user", %Activity{} = item) do
Logger.debug("Trying to push to users")
recipient_topics =
diff --git a/test/pleroma/web/streamer_test.exs b/test/pleroma/web/streamer_test.exs
@@ -19,7 +19,12 @@ defmodule Pleroma.Web.StreamerTest do
@moduletag needs_streamer: true, capture_log: true
- setup do: clear_config([:instance, :skip_thread_containment])
+ setup do
+ clear_config([:instance, :skip_thread_containment])
+ Mox.stub_with(Pleroma.CachexMock, Pleroma.NullCache)
+
+ :ok
+ end
describe "get_topic/_ (unauthenticated)" do
test "allows no stream" do