aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-06-02 08:56:16 +0200
committergrunfink <grunfink@comam.es>2026-06-02 08:56:16 +0200
commit1adf45de30921ae727af2dd1302615e33e8181ba (patch)
treed4cdd696307797af4613102a238bd768140f8937
parent87e87c199bfd4bfeb5e3371e047a96bec8bcb20b (diff)
Minor cleanup.
-rw-r--r--html.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/html.c b/html.c
index a553d8c..76d211c 100644
--- a/html.c
+++ b/html.c
@@ -3447,7 +3447,6 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
int utl, const char *error, int terse)
/* returns the HTML for the timeline */
{
- xs_list *p = (xs_list *)list;
const char *v;
double t = ftime();
int hide_children = xs_is_true(xs_dict_get(srv_config, "strict_public_timelines")) && read_only;
@@ -3639,7 +3638,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
int show_unlisted = user ? xs_is_true(xs_dict_get(user->config, "show_unlisted")) : 0;
- while (xs_list_iter(&p, &v)) {
+ xs_list_foreach(list, v) {
xs *msg = NULL;
int status;