mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-09 11:41:32 +00:00
Forgot to order by published desc
This commit is contained in:
parent
33be4f1106
commit
50731bff53
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ impl LocalImage {
|
||||||
local_image::table
|
local_image::table
|
||||||
.filter(local_image::local_user_id.eq(user_id))
|
.filter(local_image::local_user_id.eq(user_id))
|
||||||
.select(local_image::all_columns)
|
.select(local_image::all_columns)
|
||||||
|
.order_by(local_image::published.desc())
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.load::<LocalImage>(conn)
|
.load::<LocalImage>(conn)
|
||||||
|
|
Loading…
Reference in a new issue