David, Ryan, and team,
Firstly great plugin. I have one developer driven feature request that should be simple to deliver.
Basically that you separate out the static function create in class-micropub-endpoint.php, into two seprarte functions.
The first should prepare all the arguments and the sec ond should actually insert the data into the database. The second function should then have an additional filter right before wp_insert_post to allow for the indeiweb content to be inserted into another table, rather than wp_posts.
My use case being that I want to integrate buddypress with micropub, and as such I want to map some of the indeweb content types into buddypress type activities which involves inserting them into a different table.
]]>While the changelog does clearly state that version “1.2 (2017-06-25)” added support for u-bookmark-of
property, the current version of the plugin does not add this property to bookmarks.
The plugin isn’t tagged with ‘indieweb’ so it doesn’t show up when you browse that tag.
]]>Currently, any post/note will be created with the default post category as set by WordPress. I would, however, like to be able to use a separate category (e.g. ‘Microblog’ or ‘Status’) to be able to separate these in all kinds of places.
So, would it be possible to have a setting in the plugin that allows one to pick the category to use for posts? Where the default value is the WordPress default?
]]>I have tried to create a new post with both https://micropublish.net/new and https://quill.p3k.io/new but they seem to fail.
Both services could authenticate just fine.
Quill says:
Your endpoint did not return a Location header.
See Creating a Micropub Endpoint for more information.
`
HTTP/1.1 403 Forbidden
Date: Mon, 30 Jul 2018 06:53:34 GMT
Server: Apache
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Link: <https://test-wp.robertvanbregt.nl/wp-json/indieauth/1.0/token>; rel=”token_endpoint”, <https://test-wp.robertvanbregt.nl/wp/?micropub=endpoint>; rel=”micropub”, <https://test-wp.robertvanbregt.nl/wp-json/webmention/1.0/endpoint>; rel=”webmention”, <https://test-wp.robertvanbregt.nl/wp-json/webmention/1.0/endpoint>; rel=”https://webmention.org/”
Strict-Transport-Security: max-age=300; includeSubdomains;
Vary: User-Agent
Upgrade: h2c
Connection: Upgrade
Transfer-Encoding: chunked
Content-Type: application/json
{“error”:”insufficient_scope”,”error_description”:”scope insufficient to create posts”}
`
I’m sure this works but I’m kind of in the dark in how to get started. What client do you suggest I use and how do I authenticate?
Very worthy work just keen to embrace the indieweb!!!
]]>