Update note
This commit is contained in:
parent
1ce7fdade0
commit
56490e3934
1 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,8 @@ defmodule Nulla.Models.Note do
|
||||||
from(n in __MODULE__,
|
from(n in __MODULE__,
|
||||||
where: n.actor_id == ^actor_id,
|
where: n.actor_id == ^actor_id,
|
||||||
order_by: [desc: n.inserted_at],
|
order_by: [desc: n.inserted_at],
|
||||||
limit: ^limit
|
limit: ^limit,
|
||||||
|
preload: [:actor, :media_attachments]
|
||||||
)
|
)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
end
|
end
|
||||||
|
@ -57,7 +58,8 @@ defmodule Nulla.Models.Note do
|
||||||
from(n in __MODULE__,
|
from(n in __MODULE__,
|
||||||
where: n.actor_id == ^actor_id and n.id < ^max_id,
|
where: n.actor_id == ^actor_id and n.id < ^max_id,
|
||||||
order_by: [desc: n.inserted_at],
|
order_by: [desc: n.inserted_at],
|
||||||
limit: ^limit
|
limit: ^limit,
|
||||||
|
preload: [:actor, :media_attachments]
|
||||||
)
|
)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue