Giter Site home page Giter Site logo

Comments (15)

snarfed avatar snarfed commented on May 20, 2024

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.

dshanske avatar dshanske commented on May 20, 2024

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.

dshanske avatar dshanske commented on May 20, 2024

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.

davidmead avatar davidmead commented on May 20, 2024

@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.

dshanske avatar dshanske commented on May 20, 2024

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.

davidmead avatar davidmead commented on May 20, 2024

@dshanske i didn't know you had a Bridgy Publish plugin. I'll have to give that a spin :-)

from wordpress-micropub.

dshanske avatar dshanske commented on May 20, 2024

It basically just adds a checkbox and sends webmentions to Bridgy Publish.

from wordpress-micropub.

davidmead avatar davidmead commented on May 20, 2024

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.

snarfed avatar snarfed commented on May 20, 2024

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 and after_micropub actions and passes both the input mf2 and WP_Post args. syndication plugins could hook into after_micropub to POSSE.
  • it stores and returns mf2 properties in mf2_* post meta values, which can include syndication.

tentatively closing. feel free to ask q's or reopen!

from wordpress-micropub.

miklb avatar miklb commented on May 20, 2024

@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.

dshanske avatar dshanske commented on May 20, 2024

Look at the code in Bridgy Publish.

from wordpress-micropub.

miklb avatar miklb commented on May 20, 2024

Look at the code in Bridgy Publish.

thanks, I did try mimicking that code 1st, but to no avail.

from wordpress-micropub.

snarfed avatar snarfed commented on May 20, 2024

@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.

miklb avatar miklb commented on May 20, 2024

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.

chrisbeckstrom avatar chrisbeckstrom commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.