Skip to content

Commit

Permalink
refactor: Use ~p sigil
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Nov 1, 2023
1 parent 5eb4425 commit aea4bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pleroma/web/fallback/redirect_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ defmodule Pleroma.Web.Fallback.RedirectController do
end

def redirect_interaction(conn, %{"uri" => uri}) do
redirect(conn, to: "/ostatus_subscribe?acct=#{uri}")
conn
|> redirect(to: ~p"/ostatus_subscribe?#{[acct: uri]}")
end
end

0 comments on commit aea4bb3

Please sign in to comment.