update phoenix view_module references
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
FloatingGhost 2022-07-17 19:22:14 +01:00
parent aa69db4798
commit 02f01d0a71
3 changed files with 7 additions and 4 deletions

View file

@ -31,7 +31,8 @@ defp render_feed(conn, %{"tag" => raw_tag} = params) do
|> render("tag.#{format}",
activities: activities,
tag: tag,
feed_config: Config.get([:feed])
feed_config: Config.get([:feed]),
view_module: FeedView
)
end

View file

@ -60,7 +60,8 @@ def feed(conn, %{"nickname" => nickname} = params) do
|> render("user.#{format}",
user: user,
activities: activities,
feed_config: Config.get([:feed])
feed_config: Config.get([:feed]),
view_module: FeedView
)
end
end

View file

@ -101,7 +101,8 @@ defp do_authorize(%Plug.Conn{} = conn, params) do
scopes: scopes,
redirect_uri: params["redirect_uri"],
state: params["state"],
params: params
params: params,
view_module: OAuthView
})
end
@ -160,7 +161,7 @@ def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{
# Enforcing the view to reuse the template when calling from other controllers
conn
|> put_view(OAuthView)
|> render("oob_authorization_created.html", %{auth: auth})
|> render("oob_authorization_created.html", %{auth: auth, view_module: OAuthView})
end
def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{