Apply suggestion to lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex
authorMaksim <parallel588@gmail.com>
Sun, 22 Dec 2019 17:58:45 +0000 (17:58 +0000)
committerMaksim <parallel588@gmail.com>
Sun, 22 Dec 2019 17:58:45 +0000 (17:58 +0000)
lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex

index 460a42566147c02301c06f53e8290e3de9bff40a..e5e52a7e8d51a9de34828c6ce97b0e6351702993 100644 (file)
@@ -30,7 +30,7 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowController do
   defp follow_status(conn, _user, acct) do
     with {:ok, object} <- Fetcher.fetch_object_from_id(acct),
          %Activity{id: activity_id} <- Activity.get_create_by_object_ap_id(object.data["id"]) do
-      redirect(conn, to: "/notice/#{activity_id}")
+      redirect(conn, to: o_status_path(conn, :notice, activity_id))
     else
       error ->
         handle_follow_error(conn, error)