Switch to aliasing Router.Helpers instead of importing

This commit is contained in:
Alex Gleason 2021-05-18 17:11:25 -05:00
commit 07fed0fda2
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
21 changed files with 33 additions and 31 deletions

View file

@ -38,7 +38,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: o_status_path(conn, :notice, activity_id))
redirect(conn, to: Routes.o_status_path(conn, :notice, activity_id))
else
error ->
handle_follow_error(conn, error)