Cleanup and refactoring
This commit is contained in:
@@ -7,7 +7,7 @@ module Micropub
|
||||
"validation.posts.bookmark_contract",
|
||||
"validation.posts.checkin_contract",
|
||||
"validation.posts.book_contract",
|
||||
"commands.posts.create_entry",
|
||||
"commands.posts.create_post",
|
||||
"commands.posts.create_bookmark",
|
||||
"commands.posts.create_checkin",
|
||||
"commands.posts.create_book_post"
|
||||
@@ -22,7 +22,7 @@ module Micropub
|
||||
in Entities::BookRequest
|
||||
{command: create_book_post, validation: book_contract}
|
||||
else
|
||||
{command: create_entry, validation: post_contract}
|
||||
{command: create_post, validation: post_contract}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user