federator: remove no longer used :publish_single_ap
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 12 May 2019 03:56:49 +0000 (03:56 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 12 May 2019 05:04:16 +0000 (05:04 +0000)
lib/pleroma/web/federator/federator.ex

index 29e178ba9935b569ef6f1c0cd966f7d12cffd88a..d8534b365aada326f78a7fa64bebdc65136a5d9b 100644 (file)
@@ -42,10 +42,6 @@ defmodule Pleroma.Web.Federator do
     PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:publish, activity], priority)
   end
 
-  def publish_single_ap(params) do
-    PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:publish_single_ap, params])
-  end
-
   def publish_single_websub(websub) do
     PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:publish_single_websub, websub])
   end
@@ -157,16 +153,6 @@ defmodule Pleroma.Web.Federator do
     Salmon.send_to_user(params)
   end
 
-  def perform(:publish_single_ap, params) do
-    case ActivityPub.publish_one(params) do
-      {:ok, _} ->
-        :ok
-
-      {:error, _} ->
-        RetryQueue.enqueue(params, ActivityPub)
-    end
-  end
-
   def perform(
         :publish_single_websub,
         %{xml: _xml, topic: _topic, callback: _callback, secret: _secret} = params