From 2b9daf6c3799662593e93eec3090520608ef267c Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Mon, 11 Nov 2019 20:13:09 -0500 Subject: [PATCH] Categories should be an empty array if blank --- lib/micropub/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/micropub/models/post.rb b/lib/micropub/models/post.rb index 22e41c7..ce0a0d1 100644 --- a/lib/micropub/models/post.rb +++ b/lib/micropub/models/post.rb @@ -34,7 +34,7 @@ class Post end def categories - params["category"] + params["category"] || [] end def content