1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00

Categories should be an empty array if blank

This commit is contained in:
Daniel Barber 2019-11-11 20:13:09 -05:00
parent 4c56ac418f
commit 2b9daf6c37

View File

@ -34,7 +34,7 @@ class Post
end
def categories
params["category"]
params["category"] || []
end
def content