mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
format
This commit is contained in:
parent
702d096ecf
commit
62143a3910
2 changed files with 7 additions and 3 deletions
|
@ -134,10 +134,14 @@ defmodule PhilomenaWeb.ImageController do
|
|||
end
|
||||
end
|
||||
|
||||
defp maybe_skip_to_last_comment_page(conn, image, %{comments_newest_first: false, comments_always_jump_to_last: true}) do
|
||||
defp maybe_skip_to_last_comment_page(conn, image, %{
|
||||
comments_newest_first: false,
|
||||
comments_always_jump_to_last: true
|
||||
}) do
|
||||
page = CommentLoader.last_page(conn, image)
|
||||
|
||||
conn
|
||||
|> assign(:comment_scrivener, Keyword.merge(conn.assigns.comment_scrivener, [page: page]))
|
||||
|> assign(:comment_scrivener, Keyword.merge(conn.assigns.comment_scrivener, page: page))
|
||||
end
|
||||
|
||||
defp maybe_skip_to_last_comment_page(conn, _image, _user), do: conn
|
||||
|
|
|
@ -418,7 +418,7 @@ defmodule PhilomenaWeb.Router do
|
|||
scope "/", PhilomenaWeb do
|
||||
pipe_through [:browser, :ensure_totp, :ensure_tor_authorized]
|
||||
|
||||
get "/", ActivityController, :index, [assigns: %{index: true}]
|
||||
get "/", ActivityController, :index, assigns: %{index: true}
|
||||
|
||||
resources "/activity", ActivityController, only: [:index]
|
||||
|
||||
|
|
Loading…
Reference in a new issue