Comments (15)
this will be great! definitely ambitious though. fortunately we can take a few incremental steps along the way first, each independently, eg JSON input/output, compliance with the current spec, notably query param names, and simple syndicate-to support, without any uid or target management. (and unit tests as we go. :P)
from wordpress-micropub.
I can't use Micropub without POSSE support. So I need to move in the direction of adding the features that I need to fully adopt.
from wordpress-micropub.
Just to mirror what I noted in #25 , plan is to rearrange just enough the query from the post at the start of the process, and then enhance that element to support the specification as I get the syndicate-to working.
from wordpress-micropub.
@dshanske @snarfed I assume this is so that the plugin can support things like Quill? I asked @aaronpk about that, as I couldn't get Quill to syndicate when using it with my WP blog.
Happy to beta test if you get something going :-)
from wordpress-micropub.
The idea is that it would allow a POSSE plugin to support being triggered by the Micropub plugin. Since the only POSSE plugin I personally control is the Bridgy Publish one...I was going to test with that. If that works, I could try to get other developers to either add code, or accept a PR.
from wordpress-micropub.
@dshanske i didn't know you had a Bridgy Publish plugin. I'll have to give that a spin :-)
from wordpress-micropub.
It basically just adds a checkbox and sends webmentions to Bridgy Publish.
from wordpress-micropub.
That might solve an issue I'm having. When I post in Instagram and PESOS it to my blog, I have an IFTTT recipe that posts it to Twitter, but I don't get the Twitter syndication link on my blog, just the Instagram one. I have to add the Twitter one manually. Looking for a way to overcome that.
from wordpress-micropub.
with all the recent work i've done on bringing this up to the current spec, i think this is pretty much done.
- it calls a
micropub_syndicate-to
filter that collects and returns syndication targets to queries. - it calls
before_micropub
andafter_micropub
actions and passes both the input mf2 andWP_Post
args. syndication plugins could hook intoafter_micropub
to POSSE. - it stores and returns mf2 properties in
mf2_*
post meta values, which can includesyndication
.
tentatively closing. feel free to ask q's or reopen!
from wordpress-micropub.
@snarfed my php-fu is failing me, could you provide an example of how I can pass a new syndicate-to
target using the filter? I want to add GitHub using silo.pub. I was going to use the existing access token provided to test. I have the uuid
set to https://silo.pub/micropub?access_token=abc123
and name
set in a array, but I'm missing the step of getting that into the filter.
I'm not even sure where to debug, just the new syndicate-to
doesn't appear in Quill along with the bridy ones from the bridgy plugin.
Any tips greatly appreciated.
from wordpress-micropub.
Look at the code in Bridgy Publish.
from wordpress-micropub.
Look at the code in Bridgy Publish.
thanks, I did try mimicking that code 1st, but to no avail.
from wordpress-micropub.
@miklb sure! should be something like this:
function micropub_syndicate_to_github($synd_urls, $user_id) {
$synd_urls[] = 'https://silo.pub/micropub?access_token=abc123';
return $synd_urls;
}
add_filter('micropub_syndicate-to', 'micropub_syndicate_to_github');
from wordpress-micropub.
Thanks! I was missing the return.
In case anyone else comes across this, for Quill at least, I had to make it an array with the uuid
and name
function micropub_syndicate_to_github($synd_urls, $user_id) {
$synd_urls[] = array(
'uid' => 'https://silo.pub/micropub?access_token=abc123',
'name' => 'GitHub',
);
return $synd_urls;
}
add_filter('micropub_syndicate-to', 'micropub_syndicate_to_github');
from wordpress-micropub.
hey all! Thanks for your hard work on this. I know this is an old closed issue, I'd be happy to open a new one if you think that would be best.
I'm trying to figure out how to configure a "post to mastodon" plugin as a micropub "syndicate-to" choice. I've read through this thread but I'm really grokking it.
I thought that if I set the Mastodon Auto-poster to "post to mastodon on new posts" that when I make a new post with a micropub client that it would be triggered. However, that's not the case. I don't know if that's an issue with the Mastodon Auto-poster plugin or what. Wondering if it would be better to simply learn how to add new syndication destinations... so here I am :-)
from wordpress-micropub.
Related Issues (20)
- HTML Content not Being Marked as Such on Return
- Tags and Categories HOT 4
- Broken README.md HOT 1
- `q=source` is not returning valid MF2 JSON for empty properties
- If a Post is Updated By a User Other Than the Original Creator Make sure the _edit_last property is set
- Support if Latitude, Longitude, and Altitude are Passed as top-level properties rather than as the location property. HOT 1
- Adjust return on q=source for media HOT 1
- Media Endpoitn returns 403 response HOT 2
- Refactor to Allow Content to Be Inserted into a Custom Location HOT 1
- Update Links in main file HOT 1
- Sideloading Images Not Working HOT 1
- Implement Cache-Control Headers on Queries
- mp-destination support
- Add visibility to q=config
- Update Media Endpoint Return HOT 1
- No Longer Store Entire Auth Response
- Presence of <SVG in POSTed content results in 403 HOT 7
- Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /[...]/wp-includes/formatting.php:1595 HOT 3
- Undefined variable: $props
- Support HTML content HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-micropub.