#wordpress 2019-04-22

2019-04-22 UTC
[eddie], gRegorLove and [Rose] joined the channel
#
[Rose]
!tell GWG I would personally see multi-photo as an extension of photo, not a gallery
#
Loqi
Ok, I'll tell them that when I see them next
[Rose], [jgmac1106], bradenslen, [stefp], [frank], [tantek], [eddie] and jackjamieson joined the channel
#
GWG
jackjamieson I am still working on the endpoint
#
Loqi
GWG: [Rose] left you a message 8 hours, 34 minutes ago: I would personally see multi-photo as an extension of photo, not a gallery
#
GWG
jackjamieson, you aren't responding using standard error messages
#
jackjamieson
GWG - Great, let me know if there's anything I can help with or explain
#
jackjamieson
Ah, yeah - I realized that part way through but haven't learned how to do it properly yet
#
GWG
jackjamieson, already implemented
#
jackjamieson
Thanks! I think there are probably several issues like that where I got my code to work, but you can definitely see that I was learning as I went and had some gaps in my knowledge
#
GWG
I am just touching the endpoint file right now
#
GWG
I have not looked much at the rest
#
jackjamieson
I can use that as a reference to fix up similar problems elsewhere
#
GWG
The structure is similar to what I did in the Micropub plugin
#
GWG
Auth happens early
#
jackjamieson
Definitely an improvement - I was obviously missing something when I looked at the new endpoint code in the Micropug plugin, but I did catch that auth and scope checks happen right away, and that this is more efficient
#
GWG
I may have to refine them a few times, but they work now
#
GWG
Also adding in the same input filter that Micropub has
#
GWG
I also bumped the minimum php version check to 5.4
#
jackjamieson
The input filter is the load_input function, right?
#
GWG
Yes
#
GWG
All it does is allow it to be filtered
#
GWG
In Micropub it also standardizes the form and json encoding, but not needed here
#
jackjamieson
Excellent - I gather this provides a means to return an error right away if the request is invalid or empty
#
GWG
Among other things, yes.
#
GWG
It also allows for extra processing by another plugin
#
jackjamieson
Cool, that's interesting
#
GWG
I like to leave a few options for future use
#
GWG
I use the Micropub ones all the time
#
jackjamieson
Hmm, interesting - in your other plugins?
#
GWG
Yes
#
GWG
Simple Location and Post Kinds both do
#
GWG
Both take over or enhance queries
#
jackjamieson
Just taking a look at that now - that makes a lot of sense - I hadn't realized how they work together
#
GWG
When you query the Micropub endpoint for location data, Simple Location responds
#
GWG
So, while Microsub is less likely to be modded by other programs, you never know
#
GWG
I should be finishing the PR within the day
#
sknebel
a good integration between microsub and other plugins could be notifications - e.g. about incoming webmentions
#
sknebel
(just an example that might fit for microsub)
#
Loqi
I agree
#
sknebel
gives Loqi a cookie
#
jackjamieson
sknebel That's a good idea!
#
Loqi
steps on the cookie
[Rose] joined the channel
#
[Rose]
Bad Loqi, no need to ruin the cookies
#
jackjamieson
Maybe loqi's on a diet
#
sknebel
imagines Loqi as one of those lizards that can suck up liquids from their feet to their mouth over their skin
#
[Rose]
Loqi has eating cookies in a regular manner before
#
jackjamieson
GWG: Sounds great! I'll await the PR with excitement
#
[Rose]
*eaten
#
jackjamieson
sknebel, I think you've introduced me to a new and terrifying phobia
#
sknebel
oh no!
#
GWG
Well, that would require another filter at a different level
#
jackjamieson
GWG, Along similar lines as notifications for webmentions, would it be possible to add a read-it-later function through Micropub. e.g. use Indiepaper to post to Micropub, and Micropub redirects it to Micropub?
#
jackjamieson
*redirects it to microsub
#
GWG
I have an idea on that
#
jackjamieson
Thinking out load - two ways I can think of for either case (webmentions & read it later). (1) A filter to add custom channels when returning json to a client; (2) A function for Yarns to receive special types of posts. In this case an extension could (a) Create a channel if it doesn't not already exist and then (b) add a post to that channel
#
GWG
Well, I wanted to add a filter to micropub that would redirect on destination being set
#
GWG
That would work for everything but internal
gRegorLove joined the channel
#
jackjamieson
I'm not sure I understand what constitutes 'internal' in this case, but a filter on micropub makes sense. Either way, I'll note this as a future feature of Yarns too, to receive special types of posts from other plugins
#
GWG
Internal as coming from another plugin
#
GWG
External as coming in over Micropub
#
GWG
So, one filter in Micropub that Microsub can use to divert content into a channel
#
GWG
One in Microsub to directly add to a channel from another plugin
#
jackjamieson
Got it, that'd be a nice thing to add
[tantek] joined the channel
#
GWG
Otherwise, there is no use in a WordPress site for destination unless it is a multisite, which I've never implemented
doubleloop, dougbeal|imac and [cleverdevil] joined the channel
#
doubleloop
[kimberlyhirsh]: oh cool, thanks! I think I will try and repurpose that to also autolink Mastodon accounts, which I tend to link to more.
[tantek] joined the channel
#
[tantek]
what is Getting_Started_with_WordPress
#
Loqi
By using WordPress on your own domain, you are already a part of the IndieWeb. Below are some suggestions to help you get started with upgrading your WordPress site to support IndieWeb philosophies https://indieweb.org/Getting_Started_with_WordPress
[eddie], [schmarty], gRegorLove_, Ruxton_, [tantek]1, [tantek] and chrisaldrich joined the channel