fix: paged profile timeline

This commit is contained in:
trisua 2025-08-15 17:45:56 -04:00
parent 45d9d3ae3b
commit 3a48ef2969
3 changed files with 2 additions and 2 deletions

View file

@ -46,5 +46,4 @@
(await ns(\"ui\")).IO_DATA_DISABLE_RELOAD = true; (await ns(\"ui\")).IO_DATA_DISABLE_RELOAD = true;
console.log(\"created profile timeline\"); console.log(\"created profile timeline\");
}, 1000);")) }, 1000);"))
(text "{% endblock %}") (text "{% endblock %}")

View file

@ -30,5 +30,5 @@
(text "{%- endif %}") (text "{%- endif %}")
(text "{% if paginated -%}") (text "{% if paginated -%}")
(text "{{ components::pagination(page=page, items=list|length) }}") (text "{{ components::pagination(page=page, items=list|length, key=\"&tag=\" ~ tag) }}")
(text "{%- endif %}") (text "{%- endif %}")

View file

@ -848,6 +848,7 @@ pub async fn swiss_army_timeline_request(
let mut context = initial_context(&data.0.0.0, lang, &user).await; let mut context = initial_context(&data.0.0.0, lang, &user).await;
context.insert("list", &list); context.insert("list", &list);
context.insert("tag", &req.tag);
context.insert("page", &req.page); context.insert("page", &req.page);
context.insert("paginated", &req.paginated); context.insert("paginated", &req.paginated);
Ok(Html( Ok(Html(