[#114] Added email confirmation resend action. Added tests
[akkoma] / lib / pleroma / web / ostatus / ostatus_controller.ex
index af6e22c2b8c90e18c4aeefa1f9817568abf399b6..6005eadb2e2f447b4f1d996ad4ae373a3771cb08 100644 (file)
@@ -136,7 +136,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
         "html" ->
           conn
           |> put_resp_content_type("text/html")
-          |> send_file(200, Application.app_dir(:pleroma, "priv/static/index.html"))
+          |> send_file(200, Pleroma.Plugs.InstanceStatic.file_path("index.html"))
 
         _ ->
           represent_activity(conn, format, activity, user)
@@ -157,7 +157,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
          conn,
          "activity+json",
          %Activity{data: %{"type" => "Create"}} = activity,
-         user
+         _user
        ) do
     object = Object.normalize(activity.data["object"])
 
@@ -166,7 +166,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
     |> json(ObjectView.render("object.json", %{object: object}))
   end
 
-  defp represent_activity(conn, "activity+json", _, _) do
+  defp represent_activity(_conn, "activity+json", _, _) do
     {:error, :not_found}
   end