+
+char* construct_navigation_box(char* prev_id, char* next_id, size_t* size);
+
+#endif // NAVIGATION_H
diff --git a/src/timeline.c b/src/timeline.c
index 85d7197..a004bcf 100644
--- a/src/timeline.c
+++ b/src/timeline.c
@@ -24,6 +24,7 @@
#include "status.h"
#include "easprintf.h"
#include "reply.h"
+#include "navigation.h"
#include "../static/navigation.chtml"
@@ -62,8 +63,9 @@ void tl_public(mastodont_t* api, int local)
// Create post box
post_box = construct_post_box(NULL, "", NULL);
- navigation_box = construct_navigation_box();
- easprintf(&output, "%s%s%s", post_box, status_format, data_navigation_html);
+ navigation_box = construct_navigation_box(
+ statuses[0].id, statuses[status_count].id, NULL);
+ easprintf(&output, "%s%s%s", post_box, status_format, navigation_box);
struct base_page b = {
.locale = L10N_EN_US,
diff --git a/static/navigation.html b/static/navigation.html
index d6b2d58..608b14f 100644
--- a/static/navigation.html
+++ b/static/navigation.html
@@ -11,7 +11,7 @@
|