mirror of
https://github.com/danbee/micropub.git
synced 2026-06-20 23:02:26 +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