aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/live_timeline_updater.php
diff options
context:
space:
mode:
authorwinter2025-01-15 20:33:38 +0000
committerwinter2025-01-15 20:33:38 +0000
commit75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch)
tree6240a96338f58b5f175e97132a4ce5d804e3b2da /templates/live_timeline_updater.php
parent07df9da970ceaa54c734d73bdb148fa36d42db63 (diff)
implement home timeline
Diffstat (limited to 'templates/live_timeline_updater.php')
-rw-r--r--templates/live_timeline_updater.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/live_timeline_updater.php b/templates/live_timeline_updater.php
new file mode 100644
index 0000000..366b417
--- /dev/null
+++ b/templates/live_timeline_updater.php
@@ -0,0 +1,4 @@
+<form hidden id="liveTimelineUpdater" hx-trigger="load delay:10s, update" hx-get="/feed/<?= $kind ?>/partial"
+ hx-target="next #timelineItems" hx-swap="afterbegin" <?= ($isUpdate ?? false) ? 'hx-swap-oob="true"' : '' ?>>
+ <input type="hidden" name="since" value="<?= $since->format('c') ?>">
+</form> \ No newline at end of file