From 054621ab13be5768d668a5ea37debb9aa2404b71 Mon Sep 17 00:00:00 2001 From: "Colin M. Strickland" Date: Sun, 26 Oct 2014 21:43:00 +0000 Subject: [PATCH] fix import-posts pass through 'since' as nil adds a conditional to the invocation of import-post in import-posts loop there needs to be a guard around 'since' in the loop: if import posts tries to pass it's optional 'since' parameter through to import-post it will prevent any posts from being output , because every post will be compared against a timestamp of nil --- plugins/import.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/import.lisp b/plugins/import.lisp index d3437df..456fb51 100644 --- a/plugins/import.lisp +++ b/plugins/import.lisp @@ -58,7 +58,8 @@ (ensure-directories-exist (or output (repo *config*))) (let* ((xml (cxml:parse-file filepath (cxml-dom:make-dom-builder))) (posts (dom:get-elements-by-tag-name xml "item"))) - (loop for post across posts do (import-post post output since)) + (loop for post across posts do (if since (import-post post output since) + (import-post post output))) (delete-file filepath)))) (defun enable (&key filepath output)