mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
fix order
This commit is contained in:
parent
299e0cf923
commit
f5996dc084
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ defmodule PhilomenaWeb.Admin.ModNoteController do
|
|||
mod_notes =
|
||||
queryable
|
||||
|> preload(:moderator)
|
||||
|> order_by(desc: :id)
|
||||
|> Repo.paginate(conn.assigns.scrivener)
|
||||
|
||||
bodies = Renderer.render_collection(mod_notes, conn)
|
||||
|
|
|
@ -17,5 +17,5 @@ defmodule PhilomenaWeb.Admin.ModNoteView do
|
|||
def link_to_noted_thing(conn, %User{} = user),
|
||||
do: link("User #{user.name}", to: Routes.profile_path(conn, :show, user))
|
||||
|
||||
def link_to_noted_thing(_conn, notable), do: "Item permanently deleted"
|
||||
def link_to_noted_thing(_conn, _notable), do: "Item permanently deleted"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue