Remove scrobbling support
[akkoma] / lib / pleroma / web / common_api.ex
index 92afd5cb61e6533ebfc0359742b8eee21bc1ed14..3c2e7ae86bed2348eaf24a013ee5563b9d0401c9 100644 (file)
@@ -388,21 +388,9 @@ defmodule Pleroma.Web.CommonAPI do
     |> check_expiry_date()
   end
 
-  def listen(user, data) do
-    with {:ok, draft} <- ActivityDraft.listen(user, data) do
-      ActivityPub.listen(draft.changes)
-    end
-  end
-
   def post(user, %{status: _} = data) do
     with {:ok, draft} <- ActivityDraft.create(user, data) do
-      activity = ActivityPub.create(draft.changes, draft.preview?)
-
-      unless draft.preview? do
-        Pleroma.Elasticsearch.maybe_put_into_elasticsearch(activity)
-      end
-
-      activity
+      ActivityPub.create(draft.changes, draft.preview?)
     end
   end