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
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:
parent
aa69db4798
commit
02f01d0a71
3 changed files with 7 additions and 4 deletions
|
@ -31,7 +31,8 @@ defp render_feed(conn, %{"tag" => raw_tag} = params) do
|
||||||
|> render("tag.#{format}",
|
|> render("tag.#{format}",
|
||||||
activities: activities,
|
activities: activities,
|
||||||
tag: tag,
|
tag: tag,
|
||||||
feed_config: Config.get([:feed])
|
feed_config: Config.get([:feed]),
|
||||||
|
view_module: FeedView
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,8 @@ def feed(conn, %{"nickname" => nickname} = params) do
|
||||||
|> render("user.#{format}",
|
|> render("user.#{format}",
|
||||||
user: user,
|
user: user,
|
||||||
activities: activities,
|
activities: activities,
|
||||||
feed_config: Config.get([:feed])
|
feed_config: Config.get([:feed]),
|
||||||
|
view_module: FeedView
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -101,7 +101,8 @@ defp do_authorize(%Plug.Conn{} = conn, params) do
|
||||||
scopes: scopes,
|
scopes: scopes,
|
||||||
redirect_uri: params["redirect_uri"],
|
redirect_uri: params["redirect_uri"],
|
||||||
state: params["state"],
|
state: params["state"],
|
||||||
params: params
|
params: params,
|
||||||
|
view_module: OAuthView
|
||||||
})
|
})
|
||||||
end
|
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
|
# Enforcing the view to reuse the template when calling from other controllers
|
||||||
conn
|
conn
|
||||||
|> put_view(OAuthView)
|
|> put_view(OAuthView)
|
||||||
|> render("oob_authorization_created.html", %{auth: auth})
|
|> render("oob_authorization_created.html", %{auth: auth, view_module: OAuthView})
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{
|
def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{
|
||||||
|
|
Loading…
Reference in a new issue