ensure .exs config is used before default (#197)
[akkoma] / lib / pleroma / web / activity_pub / utils.ex
index 5e5df488839aaf64103477065c74d593852164b9..b920e8c1d1648d12e847adc81958bb6f2fb10690 100644 (file)
@@ -472,18 +472,6 @@ defmodule Pleroma.Web.ActivityPub.Utils do
     {:ok, activity}
   end
 
-  def update_follow_state(
-        %Activity{} = activity,
-        state
-      ) do
-    new_data = Map.put(activity.data, "state", state)
-    changeset = Changeset.change(activity, data: new_data)
-
-    with {:ok, activity} <- Repo.update(changeset) do
-      {:ok, activity}
-    end
-  end
-
   @doc """
   Makes a follow activity data for the given follower and followed
   """