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:
parent
4c56ac418f
commit
2b9daf6c37
@ -34,7 +34,7 @@ class Post
|
|||||||
end
|
end
|
||||||
|
|
||||||
def categories
|
def categories
|
||||||
params["category"]
|
params["category"] || []
|
||||||
end
|
end
|
||||||
|
|
||||||
def content
|
def content
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user