fix: order

was it just me being silly displaying it??? lol
This commit is contained in:
əlemi 2024-04-14 06:43:21 +02:00
parent 8a14600311
commit 19598aaffd
Signed by: alemi
GPG key ID: A4895B84D311642C
4 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ pub async fn page(
let offset = page.offset.unwrap_or(0);
let activities = model::addressing::Entity::find_activities()
.filter(auth.filter_condition())
.order_by(model::addressing::Column::Published, Order::Asc)
.order_by(model::addressing::Column::Published, Order::Desc)
.limit(limit)
.offset(offset)
.into_model::<EmbeddedActivity>()

View file

@ -18,7 +18,7 @@ pub async fn page(
match model::addressing::Entity::find_activities()
.filter(auth.filter_condition())
// TODO also limit to only local activities
.order_by(model::addressing::Column::Published, Order::Asc)
.order_by(model::addressing::Column::Published, Order::Desc)
.limit(limit)
.offset(offset)
.into_model::<EmbeddedActivity>()

View file

@ -36,7 +36,7 @@ pub async fn page(
let offset = page.offset.unwrap_or(0);
let activities = model::addressing::Entity::find_activities()
.filter(Condition::all().add(model::addressing::Column::Actor.eq(&uid)))
.order_by(model::addressing::Column::Published, Order::Asc)
.order_by(model::addressing::Column::Published, Order::Desc)
.offset(offset)
.limit(limit)
.into_model::<EmbeddedActivity>()

View file

@ -26,7 +26,7 @@ pub async fn page(
match model::addressing::Entity::find_activities()
.filter(Condition::all().add(model::activity::Column::Actor.eq(&uid)))
.filter(auth.filter_condition())
.order_by(model::addressing::Column::Published, Order::Asc)
.order_by(model::addressing::Column::Published, Order::Desc)
.limit(limit)
.offset(offset)
.into_model::<EmbeddedActivity>()