aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-10-19 21:28:11 +0200
committerdefault <nobody@localhost>2024-10-19 21:28:11 +0200
commitd4ec39da72e9ef568ca199081401d3dae8eceaa6 (patch)
treea352ad2aa2f816d976a2ec55e471f76dfe4375ea /data.c
parent30323616cb2f34d177a079189a6763cd43c050d6 (diff)
Return an empty list in list_timeline() if (still) there is no list timeline.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 00494a2..ad4ca7d 100644
--- a/data.c
+++ b/data.c
@@ -2085,6 +2085,8 @@ xs_list *list_timeline(snac *user, const char *list, int skip, int show)
if (mtime(fn) > 0.0)
l = index_list_desc(fn, skip, show);
+ else
+ l = xs_list_new();
return l;
}