mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
parent
88cbde660b
commit
d619455e1f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Notes
|
||||||
function getUserNotes(User $user, int $page = 1, ?int $perPage = NULL): \Traversable
|
function getUserNotes(User $user, int $page = 1, ?int $perPage = NULL): \Traversable
|
||||||
{
|
{
|
||||||
$perPage = $perPage ?? OPENVK_DEFAULT_PER_PAGE;
|
$perPage = $perPage ?? OPENVK_DEFAULT_PER_PAGE;
|
||||||
foreach($this->notes->where("owner", $user->getId())->where("deleted", 0)->page($page, $perPage) as $album)
|
foreach($this->notes->where("owner", $user->getId())->where("deleted", 0)->order("created DESC")->page($page, $perPage) as $album)
|
||||||
yield new Note($album);
|
yield new Note($album);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue