diff options
author | Maksim <parallel588@gmail.com> | 2019-12-22 17:58:45 +0000 |
---|---|---|
committer | Maksim <parallel588@gmail.com> | 2019-12-22 17:58:45 +0000 |
commit | c9a44ec4a6f7b98145e2b192519dfa6933f430d0 (patch) | |
tree | 881f8b3af8d7fa6389b9885c9a586ea1822f092e /lib | |
parent | 5b8415601346447b9a66b1eabfc7538191892a76 (diff) | |
download | pleroma-c9a44ec4a6f7b98145e2b192519dfa6933f430d0.tar.gz |
Apply suggestion to lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex b/lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex index 460a42566..e5e52a7e8 100644 --- a/lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/remote_follow_controller.ex @@ -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) |