diff --git a/web/src/actors/follow.rs b/web/src/actors/follow.rs index 8ede770..d629937 100644 --- a/web/src/actors/follow.rs +++ b/web/src/actors/follow.rs @@ -32,22 +32,28 @@ pub fn FollowList(outgoing: bool) -> impl IntoView { {move || match resource.get() { None => view! { }.into_view(), Some(Err(e)) => view! {

could not load {follow___}: {e}

}.into_view(), - Some(Ok(arr)) => view! { - x, - None => Arc::new(serde_json::Value::String(id)), - }; - view! { - -
- }.into_view() - } - / > - }.into_view(), + Some(Ok(mut arr)) => { + // TODO cheap fix: server gives us follows from oldest to newest + // but it's way more convenient to have them other way around + // so we reverse them just after loading them + arr.reverse(); + view! { + x, + None => Arc::new(serde_json::Value::String(id)), + }; + view! { + +
+ }.into_view() + } + / > + }.into_view() + }, }} }