fix: duplicated posts in all timeline
This commit is contained in:
parent
1dc0611298
commit
e5b6b5a4d4
9 changed files with 34 additions and 43 deletions
|
@ -36,7 +36,7 @@
|
|||
(text "{% set paged = user and user.settings.paged_timelines %}")
|
||||
(script
|
||||
(text "setTimeout(() => {
|
||||
trigger(\"ui::io_data_load\", [\"/_swiss_army_timeline?tl=AllPosts&page=\", Number.parseInt(\"{{ page }}\") - 1, \"{{ paged }}\" === \"true\"]);
|
||||
trigger(\"ui::io_data_load\", [\"/_swiss_army_timeline?tl=AllPosts&before=$1$&page=\", Number.parseInt(\"{{ page }}\") - 1, \"{{ paged }}\" === \"true\"]);
|
||||
});"))
|
||||
|
||||
(text "{% endblock %}")
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
(datalist
|
||||
("ui_ident" "list_posts_{{ page }}")
|
||||
(text "{% for post in list -%}")
|
||||
(option ("value" "{{ post[0].id }}"))
|
||||
(option ("value" "{{ post[0].id }}") ("data-created" "{{ post[0].created }}"))
|
||||
(text "{%- endfor %}"))
|
||||
(text "{% if list|length == 0 -%}")
|
||||
(div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue