Commit eba3c7b4 authored by Haelwenn's avatar Haelwenn
Browse files

Merge branch 'cycles-side-effects' into 'develop'

Recompilation speedup: Switch to runtime deps in ActivityPub.SideEffects

See merge request !3460
parents d8c964fc 67ec0e6c
Pipeline #36511 passed with stages
in 85 minutes and 29 seconds
......@@ -28,11 +28,12 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
require Logger
@cachex Pleroma.Config.get([:cachex, :provider], Cachex)
@ap_streamer Pleroma.Config.get([:side_effects, :ap_streamer], ActivityPub)
@logger Pleroma.Config.get([:side_effects, :logger], Logger)
@behaviour Pleroma.Web.ActivityPub.SideEffects.Handling
defp ap_streamer, do: Pleroma.Config.get([:side_effects, :ap_streamer], ActivityPub)
@impl true
def handle(object, meta \\ [])
......@@ -302,8 +303,8 @@ def handle(%{data: %{"type" => "Delete", "object" => deleted_object}} = object,
@ap_streamer.stream_out_participations(deleted_object, user)
ap_streamer().stream_out_participations(deleted_object, user)
{:actor, _} ->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment