#wordpress 2017-07-02

2017-07-02 UTC
ricmac, [kevinmarks], tantek and davidmead joined the channel
#
davidmead
morning
#
davidmead
GWG: with the webmention plugin, do i still need <link> in the <head> from webmention.io? I have both and I think it’s causing issues with OwnYourSwarm etc.
ricmac and [kevinmarks] joined the channel
#
sebsel
davidmead: I tried to find out what webmention endpoints your site exposes, but then I clicked one of your .click urls, and got redirected a bunch of times, and then the server said I was visiting it too much :(
#
sebsel
(it's more for -dev, but hey, I just got you here)
ricmac joined the channel
#
davidmead
that’s the issues i’m running into all of a sudden sebsel :-(
#
davidmead
as a noob what server is being visited too much?
ricmac joined the channel
#
sebsel
I assume your server. I'm on mobile now
#
GWG
davidmead, Webmention.io is hosted Webmentions. The WordPress plugin handles everything, no third party needed
davidmead joined the channel
#
davidmead
so GWG, is it my host that’s redirecting? confused.
#
davidmead
it’s been working fine up to June 25th
#
GWG
davidmead, Webmention.io is unnecessary for WordPress installs
#
davidmead
so, I removed the following from my theme…
#
davidmead
<link rel="pingback" href="https://webmention.io/davidjohnmead.com/xmlrpc" />
#
davidmead
<link rel="webmention" href="https://webmention.io/davidjohnmead.com/webmention" />
#
davidmead
and the webmention plugin is installed and I get…
#
davidmead
<link rel="webmention" href="http://davidjohnmead.com/blog/wp-json/webmention/1.0/endpoint" />
#
davidmead
<link rel="http://webmention.org/" href="http://davidjohnmead.com/blog/wp-json/webmention/1.0/endpoint" />
#
davidmead
does this seem correct?
#
GWG
Yes. Webmention.io is hosted Webmentions. The WordPress plug-in hosts it for you in the WordPress database
#
davidmead
OK. Good.
#
davidmead
now i have to figure out why OwnYourSwarm isn’t posting anything to the blog still
#
davidmead
i saw [mikldb] posted a reply to something on his site, but I didn’t see it come through on mine. wondering if it’s related
#
GWG
davidmead, if you had Webmention.io in your header, it might have sent his reply there instead of to WordPress
#
davidmead
good point GWG
#
GWG
You have Micropub installed?
#
davidmead
yep. version 1.2
#
davidmead
if i add [miklbs] reply URL from his site as a webmention on my post i get an error - {"code":"target_not_found","message":"Cannot find target link","data":{"status":400}}
#
GWG
You mean using the form?
#
GWG
Target is your URL
#
GWG
Source would be miklb
#
davidmead
using the form, on my post page
#
davidmead
maybe his post, though it says is a reply, doesn’t have my URL on it?
#
GWG
You can check. If it links to yours
tantek joined the channel
#
davidmead
Ugh. Just posted a reply to him and used his webmention form on his post and got this back…
#
davidmead
{"link":"https:\/\/miklb.com\/2039-2\/#comment-841","source":"http:\/\/davidjohnmead.com\/blog\/2017\/07\/02\/17209\/","target":"https:\/\/miklb.com\/2039-2\/","code":"success","message":"Webmention was successful"}
#
davidmead
as “plain text” on his endpoint
#
davidmead
that is a terrible experience. what am I supposed to do now? navigate back to his site? back button?
#
davidmead
is this expected?
#
tantek
That's a good point - I wonder what other sites return from using the webmention form on a post (e.g. adactio)
#
tantek
(or aaronpk)
#
aaronpk
mine shows the response inline without leaving the page if you have JS enabled
#
tantek
nice!
#
aaronpk
otherwise you'll get the webmention.io HTML response which shows a readable summary
#
tantek
I can't remember where we documented indieweb examples of this
#
aaronpk
me either! couldn't find them just now
#
tantek
"webmention form on a post"
#
davidmead
would updating this be part of the plugin?
#
tantek
pretty sure we started documenting though
#
tantek
someplace we should provide a how to and screenshots
#
tantek
that kind of UX documentation and guidance helps a lot
#
aaronpk
definitely
#
tantek
I'm guessing it is in one of the webmention subpages ;)
[miklb] joined the channel
#
[miklb]
Good morning
#
Loqi
guten morgen
#
davidmead
morning [miklb]. was just talking about you ;-)
ricmac joined the channel
#
davidmead
tantek aaronpk if not using webmention.io but the WP plugin, do we have to style the endpoint as part of the plugin, or the theme?
doubleloop[m] joined the channel
#
aaronpk
i would imagine it's part of the webmention plugin but i'm really not sure
ricmac joined the channel
#
davidmead
i just liked one of your posts aaronpk, via webmentions, to see what you have in action. it’s nice and what i’d expect :-)
#
aaronpk
thanks!
ricmac joined the channel
#
tantek
davidmead - did you take a screenshot of the nice result? :)
#
davidmead
tantek i did. before and after
#
tantek
awesome!
#
davidmead
now i have to figure out why my handsome visage is not being pulled through to aaronpk’s page where I posted :-)
#
davidmead
but that’s for a different IRC channel
#
tantek
aaronpk, it's apparently in the obvious place: https://indieweb.org/Webmention#IndieWeb_Examples
#
aaronpk
oh i thought that list was more about showing webmentions
#
tantek
aaronpk both apparently
#
aaronpk
i wouldn't want to clutter that with screenshots of "after" submitting the form tho
#
tantek
text and screenshots *also* describe
#
tantek
I was just looking for existing documentation
#
aaronpk
davidmead: i don't see an "author" property on your post
ricmac joined the channel
#
davidmead
hmm. thought i had that set in WP. lemme check
#
[miklb]
I’ll need to look to see if it’s something with my site or need to open an issue with the webmention plugin re: the bad UX after submitting a webmention
ricmac joined the channel
#
davidmead
aaronpk: WP has my name on each post as class=“author vcard” but not p-author. is that what you pull in?
#
aaronpk
davidmead: I follow https://indieweb.org/authorship to find the author info
#
tantek
davidmead - are you using the microformats2 plugin?
#
tantek
it might be fixing some things, but is perhaps forgetting to fix the class=“author vcard” (which should be class=“p-author h-card” in mf2)
#
tantek
that's worth tracking down
#
davidmead
tantek: no. it caused issues when using SemPress on what it sent to twitter when posting
#
davidmead
i have…
#
davidmead
<a class="url fn n" href="http://davidjohnmead.com/blog/author/davidmead/">davidmead</a>
#
tantek
davidmead, then I think you may need to update your theme
#
davidmead
within the <span> that has class of author
#
davidmead
tantek; that’s what i’m thinking
#
tantek
I think those are the two choices - either use the mf2 plugin to fix your classes for your, or update your theme yourself to use mf2 classes
#
tantek
GWG may have more recommendations
ricmac joined the channel
#
davidmead
aaronpk: looking at http://pin13.net/mf2/?url=http%3A%2F%2Fdavidjohnmead.com%2Fblog%2F2017%2F07%2F02%2F17216%2F again it seems my tweak worked and author is now showing up
#
aaronpk
no photo though, so it won't look any different on my site if you re-send the webmention
#
davidmead
ugh! where do i have to put the photo? on http://davidjohnmead.com/blog/author/davidmead/ ?
#
[miklb]
davidmead, if you take a look at the mf2 plugin, there may be a function that would use gravatar if one is found. I don’t recall exactly how that’s done though.
ricmac joined the channel
#
davidmead
my h-card is on davidjohnmead.com which isn’t in WP. I make rods for my own back all the time :-)
#
[miklb]
I don’t mean to keep pointing to that plugin, it’s just that a lof of the heavy lifting is done there. I have similar functions that I cribbed from GWG before I knew about that plugin.
#
davidmead
i know, i know [miklb]
#
davidmead
i’ll turn it on and see what breaks
#
[miklb]
if you do, you can remove that function that you added yesterday for h-entry, or at least comment it out while testing the plugin
#
[miklb]
if you really want to get into the guts of it, it would be a great experience to model your own functions after the examples in the plugin. I just don’t know if you want to do that much coding, or for it to just work™
#
[miklb]
and by just work, I mean minimally viable mf2 based on core limitations. ?
#
davidmead
[miklb] I’m not a programmer, more Gen2 in a Gen1 world :-)
#
davidmead
seems the plugin doesn’t add p-author or h-card
#
GWG
Catching up
#
GWG
First, we have a proposal to return HTML on the webmention form. Gregorlove filed it last week
#
davidmead
also moves h-entry to <body> on a single entry, but it’s in <article> in the “stream” view
#
GWG
Second, tantek is correct about the Microformats 2 plug-in
#
GWG
davidmead, the Microformats 2 plugin does the best it can to add markup without theme cooperation.
#
davidmead
GWG: i get that, i’m trying to find that sweet spot :-)
#
GWG
davidmead, happy to help in between work summonings
#
GWG
I am in the midst of trying to decide how to enhance my theme.
#
GWG
So thinking about this
#
davidmead
thx GWG. I’m going to go do some running around and get back to this later. I have set up a child theme so it could be easier for me to turn things on/off now
#
GWG
davidmead, good idea. I am happy to peruse the code if you share it
#
davidmead
GWG more than happy to do that
davidmead, ricmac and [chrisaldrich] joined the channel
#
GWG
Hello, Chrisaldrich
ricmac and davidmead joined the channel
#
davidmead
GWG: where does mf2 plugin add the h-entry to the <body> so i can try and overwrite it?
ricmac joined the channel
#
davidmead
GWG: don’t worry. there’s too many things that mf2 plugin is doing to overwrite. easier if i unactivate it again.
ricmac and [cleverdevil] joined the channel
#
GWG
davidmead, why overwrite it?
tantek joined the channel
#
davidmead
putting h-entry on the <body> instead of the <article> means when i post i get content sent to twitter that i don’t want there.
#
davidmead
also the mf2 plugin didn’t add p-author or h-card as far as I could see
#
davidmead
it also caused a <div> with e-content to be added which would then double-up on the e-content I have in the replies snippet i use
tantek joined the channel
#
davidmead
GWG: I’ve been tweeting test posts like mad this afternoon :-) seeing what works and what doesn’t
ricmac and davidmead joined the channel
#
GWG
davidmead, I use a test Twitter for that
#
davidmead
GWG: about half way through I thought I should be doing the same :-)
#
GWG
You use which theme?
ricmac joined the channel
#
davidmead
I’m using twentyseventeen at the moment
#
GWG
davidmead: We had the idea of writing mf2 compatible versions of the bundled WordPress themes, 2014-2017.
#
davidmead
that’s why i’m dabbling in to a child theme of twentyseventeen
#
davidmead
i’m finding it needs to be more looking at where i’m adding content into WP and adding mf there, rather than where it “should” go if that makes sense
ricmac joined the channel
#
GWG
I have been improving Independent Publisher. I hope raamdev agrees.
ricmac joined the channel