fix: order
was it just me being silly displaying it??? lol
This commit is contained in:
parent
8a14600311
commit
19598aaffd
4 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ pub async fn page(
|
||||||
let offset = page.offset.unwrap_or(0);
|
let offset = page.offset.unwrap_or(0);
|
||||||
let activities = model::addressing::Entity::find_activities()
|
let activities = model::addressing::Entity::find_activities()
|
||||||
.filter(auth.filter_condition())
|
.filter(auth.filter_condition())
|
||||||
.order_by(model::addressing::Column::Published, Order::Asc)
|
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<EmbeddedActivity>()
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub async fn page(
|
||||||
match model::addressing::Entity::find_activities()
|
match model::addressing::Entity::find_activities()
|
||||||
.filter(auth.filter_condition())
|
.filter(auth.filter_condition())
|
||||||
// TODO also limit to only local activities
|
// 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)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<EmbeddedActivity>()
|
||||||
|
|
|
@ -36,7 +36,7 @@ pub async fn page(
|
||||||
let offset = page.offset.unwrap_or(0);
|
let offset = page.offset.unwrap_or(0);
|
||||||
let activities = model::addressing::Entity::find_activities()
|
let activities = model::addressing::Entity::find_activities()
|
||||||
.filter(Condition::all().add(model::addressing::Column::Actor.eq(&uid)))
|
.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)
|
.offset(offset)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<EmbeddedActivity>()
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub async fn page(
|
||||||
match model::addressing::Entity::find_activities()
|
match model::addressing::Entity::find_activities()
|
||||||
.filter(Condition::all().add(model::activity::Column::Actor.eq(&uid)))
|
.filter(Condition::all().add(model::activity::Column::Actor.eq(&uid)))
|
||||||
.filter(auth.filter_condition())
|
.filter(auth.filter_condition())
|
||||||
.order_by(model::addressing::Column::Published, Order::Asc)
|
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.into_model::<EmbeddedActivity>()
|
.into_model::<EmbeddedActivity>()
|
||||||
|
|
Loading…
Reference in a new issue