changeset 15:f2ab199ac19b

imgupd: make sure to set a duration in /new
author David Demelier <markand@malikania.fr>
date Mon, 21 Dec 2020 20:57:51 +0100
parents 3670a7bceb81
children 070793dd21b2
files page-new.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/page-new.c	Mon Dec 21 20:45:05 2020 +0100
+++ b/page-new.c	Mon Dec 21 20:57:51 2020 +0100
@@ -92,7 +92,8 @@
 	struct image image = {
 		.author         = estrdup("Anonymous"),
 		.title          = estrdup("Untitled"),
-		.visible        = true
+		.visible        = true,
+		.duration       = IMAGE_DURATION_DAY
 	};
 
 	for (size_t i = 0; i < r->fieldsz; ++i) {