mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Accept single categories
This commit is contained in:
parent
9931199b8d
commit
7e728dcc2e
@ -38,7 +38,11 @@ class Post
|
||||
end
|
||||
|
||||
def categories
|
||||
params["category"] || []
|
||||
if params["category"].is_a?(Array)
|
||||
params["category"] || []
|
||||
else
|
||||
[params["category"]].compact
|
||||
end
|
||||
end
|
||||
|
||||
def content
|
||||
|
||||
Loading…
Reference in New Issue
Block a user