logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 08ba9a15b2b5fe6896197ab947bc59d57f4845c8
parent 013f7c4f8fcfd54125d964a40a7302f3f77d8cb4
Author: Mark Felder <feld@feld.me>
Date:   Thu, 28 Dec 2023 22:51:47 -0500

Fix the Federator perform/2 Oban callback

Diffstat:

Mlib/pleroma/web/federator.ex6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/pleroma/web/federator.ex b/lib/pleroma/web/federator.ex @@ -68,10 +68,8 @@ defmodule Pleroma.Web.Federator do # Job Worker Callbacks - @spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()} - def perform(:publish_one, module, params) do - apply(module, :publish_one, [params]) - end + @spec perform(atom(), any()) :: {:ok, any()} | {:error, any()} + def perform(:publish_one, params), do: Publisher.publish_one(params) def perform(:publish, activity) do Logger.debug(fn -> "Running publish for #{activity.data["id"]}" end)