#dev 2017-07-01

2017-07-01 UTC
Billbennettnz joined the channel
#
gregorlove.com
created /indorsements (+198) "prompted by [cleverdevil]"
(view diff)
#
gregorlove.com
edited /Etherpad (+481) "/* Dumping IndieWebCamp notes */ examples, bulleted list"
(view diff)
j12t, tantek, [chrisaldrich] and [cleverdevil] joined the channel
#
gregorlove.com
edited /Webmention-developer (+500) "/* How to */ === How to send webmentions with cURL ==="
(view diff)
#
gRegorLove
Watching the /2017/events video. strugee said he couldn't find how to send a webmention via curl on /Webmention-developer, so I added that ^
[miklb], snarfed and [eddie] joined the channel
#
raretrack.uk
edited /User:Raretrack.uk (+85) "/* Completed */ OC > NC"
(view diff)
snarfed joined the channel
#
raretrack.uk
edited /User:Raretrack.uk (+28) "/* Future plans */ New itch: microblog"
(view diff)
#
j_juran
gRegorLove++ for curl webmention instructions.
#
Loqi
gregorlove has 30 karma in this channel (166 overall)
#
j_juran
I was able to figure it out, but it was non-obvious.
snarfed and gRegorLove joined the channel
#
Zegnat
sknebel, know of any tricks we can use to do simpler accept header parsing than actual accept header parsing? :p
#
Zegnat
throws a regular expression at the problem
#
Zegnat
Experimental Accept header parsing through regex, because I needed just one more problem in my life: https://gist.github.com/Zegnat/c0e3625b5a34d0bd367906aa6e29543e
#
Zegnat
Now I just need to figure out how I decide form vs json from the output
#
sebsel
I was looking into the visitor::acceptance($type) in the Kirby toolkit, seeing if I could use that for my endpoint
#
sebsel
but it gives floats
#
sebsel
at which float do I return json vs from encoded? :P
#
sebsel
or was that your problem, Zegnat?
#
Zegnat
My regular expression takes care of most of the returning data problem. All I have left is the what-to-return-when problem.
#
Zegnat
The regex will give you the values for */*, application/*, application/json, and application/x-form-... and then we somehow need to wrangle that into which one to return
#
sebsel
yeah, the Kirby code does not seem to handle */*
#
Zegnat
I think this should work, but is so much code :/ https://gist.github.com/Zegnat/c0e3625b5a34d0bd367906aa6e29543e
#
sebsel
hmz, indieauth-client-php checks for json first, but does not send an accept header, am I reading that right? https://github.com/indieweb/indieauth-client-php/blob/master/src/IndieAuth/Client.php#L169
#
sebsel
or wait, this is a different part in the flow.
#
sebsel
You are not doing token exchange now, right Zegnat?
#
Zegnat
No token exchanges, no
#
Zegnat
But you are right, indieauth-client-php does not send an Accept header at all. I filed an issue on that yesterday.
#
Zegnat
And I might do a PR on it today
#
sebsel
Oh, known issues :')
#
sebsel
I see!
#
sebsel
!tell barryf I got a 500 on https://micropublish.net/auth/callback, but my ruby is not good enough to find out why :) I'm giving it a code, a state and a me, and my /auth is responding in json.
#
Loqi
Ok, I'll tell them that when I see them next
rhiaro joined the channel
#
Zegnat
Content negotiation PR filed on selfauth ?
#
rhiaro
has anyone dockerized indieauth.com yet?
#
rhiaro
I have a large todo list. I cleaned my apartment and did the laundry, so naturally.. I don't know anything about Ruby or Redis and very little about docker.. so suddenly the most important thing to do this weekend seems to be.. to dockerize indieauth.com
#
sknebel
rhiaro:I think I saw something by dougbeal about it
#
sknebel
ping dougbeal|mb1
#
Zegnat
sebsel, I would love some more eyes on this if you have a minute: https://github.com/Inklings-io/selfauth/pull/15
#
Loqi
[Zegnat] #15 First pass at content negotiation
#
sebsel
sebsel is sknebel in this context, right Zegnat?
#
sebsel
(we have too similar names here :( )
#
Zegnat
sebsel, I meant you, as you are primarily a PHP developer and I want extra eyeballs on this PR.
#
sebsel
oki :)
#
rhiaro
thanks sknebel. I found dougbeal's fork, but unless I missed something it doesn't seem to be done :)
#
rhiaro
oh man this whole stack is a huge pile of things I know nothing about, hah. Maybe I should wait til aaronpk wakes up..
#
sknebel
Zegnat: I'm not sure how your code deals with accepted types without q= ?
#
sebsel
Zegnat you also delete the `//TODO support scope`, but you don't actually support scope now. But having that in an issue is fine too.
#
sebsel
I'm not really focused at the moment, sorry :)
#
Zegnat
Oh, I might have overwritten a comment, that shouldn’t be a problem though.
#
Zegnat
sknebel, when there is no q value specified, the capture group equals ''. When a type has a q of '' I set it 1, according to HTTP spec
#
sknebel
Zegnat: oh, d'oh, I looked at gist and not the commit ?
#
rhiaro
if it helps at all, I use this handy snippet for parsing accept headers / content types I found somewhere for my conneg https://github.com/rhiaro/sloph/blob/master/vendor/AcceptHeader.php
#
Zegnat
I have seen a few classes that handle it. But non of them are public domain so I would have to reimplement them. And we really only need to compare 2 types, which seems to work fine with regex
#
rhiaro
fair enough
#
Zegnat
For actual real world content negotiation: please use a proper header parser. In the constraints of selfauth (public domain, 1 PHP file only), take the shortcut.
#
Zegnat
I might be proven wrong though, when sknebel and ben_thatmustbeme start reviewing ;)
#
sknebel
Zegnat: 1 PHP file isn't a strong argument, look at JS-devs for what "one file" can be :P
#
Zegnat
hits sknebel with a large salmon
#
sknebel
oh, dinner!
#
rhiaro
I mean, this class is like a 100 line php file :p
#
sknebel
yeah. but GPLed ;)
#
rhiaro
and I use it eeeeverywhere. It even works for rdf ;)
#
rhiaro
yeahh one day I will understand licenses.
#
Zegnat
doesn’t like GPL because it forces GPL
#
rhiaro
that seems like a reasonable thing to be upset about
#
rhiaro
I haven't quite found the brain space to have strong feelings about licensing yet, but it's definitely on my todo list
#
GWG
rhiaro, nice to see you.
#
rhiaro
hey GWG
#
rhiaro
wooooo running indieauth.com locally in docker \o/ took a bit of redis wrangling but I think it's working
#
Zegnat
rhiaro++ wooooo
#
Loqi
rhiaro has 2 karma in this channel (267 overall)
j_juran and jjuran joined the channel
#
rhiaro
wtf twitter requires a mobile number in order to get an api key
#
rhiaro
Sigh.. time for a new email address and a new twitter account
barpthewire joined the channel
#
Zegnat
petermolnar, how do you get your backtitude data out of your phone? I *think* I have it running but I have no idea how to access the data.
#
petermolnar
syncthing
#
petermolnar
between my server and the phone
#
Zegnat
Hmm, I don’t think setting up syncthing just for this is worth it. I’ll have to look at other possibilities.
#
rhiaro
welp twitter doesn't want to send an SMS to my Bosnian number
#
petermolnar
Zegnat synthing can come handy and it's really not hard to run
#
petermolnar
what's your server os?
#
Zegnat
I believe Uberspace is CentOS
#
petermolnar
in that case, it may be a bit more work, though not much
#
petermolnar
unless it's centos6
#
petermolnar
systemd unit file
#
Zegnat
I am not sure how their services work. Maybe systemd, maybe something else.
#
Zegnat
As I only have access to my userdir and then have to use their tools for setting up services
tantek joined the channel
#
Zegnat
Maybe that loops me back to needing to get a VPS again, petermolnar ?
[kevinmarks] joined the channel
#
[kevinmarks]
New Google voice number, rhiaro?
#
rhiaro
that only works in the US
#
@WendyandCharles
ReadersGazette: BLOG Indie Author Answers by Jim Heskett http://www.thejugglingauthor.com/indieauth/ Get help writing your book #bookbloggers 43
(twitter.com/_/status/881053633307181056)
#
rhiaro
or there was some other reason I couldn't get one
#
rhiaro
maybe it required an existing phone number to set up
#
rhiaro
!tell aaronpk ping me when you are awake, I have a mounting number of indieauth.com setup questions
#
Loqi
Ok, I'll tell them that when I see them next
#
sebsel
rhiaro do you want indieauth.com, or do you just want indieauth on your website? :)
#
rhiaro
I want to run an instance of indieauth.com on my own server
tantek joined the channel
#
sebsel
okay :)
#
rhiaro
I've got it running locally but I'm trying to set up some of the id providers.. apparently not as simple as copypasting the client keys and secrets
#
rhiaro
I dunno what to put for the callback URLs.. github seems to work but redirects to somewhere that doesn'tn exist. Twitter just says 401.
[miklb] joined the channel
#
schmarty
ah, you'll probably have to dig into the (i think) controllers code to find the paths that indieauth expects those callbacks to come in
#
rhiaro
aha schmarty, you see, I could do that, or I could just ask aaronpk :)
#
schmarty
i usually find myself doing one and then eventually the other :D
#
rhiaro
I think this maybe the closest I've ever come to looking at Ruby
#
rhiaro
just cos I want to run this software doesn't mean I need to understand how it works
#
rhiaro
I'm actually shocked I managed to blunder through getting it running in docker containers
#
schmarty
oh right, i forgot indieauth.com is a ruby project. i have become more used to deciphering aaronpk's laravel-based projects.
#
rhiaro
Thanks, I'll be back on this in a couple of hours.. it transpires from this twitter registration debacle that my Bosnian phone number just isn't recieving SMS at all, so I'm taking a wander to the phone shop
snarfed joined the channel
#
aaronpk
good morning
#
Loqi
aaronpk: rhiaro left you a message 48 minutes ago: ping me when you are awake, I have a mounting number of indieauth.com setup questions
#
Loqi
*yawn*
#
[miklb]
same Loqi, same
#
Loqi
[sebsel] #12 Do not rely on `me` param in callback
#
aaronpk
i think it's the responsibility of the thing using this library to not rely on the `me` param in the callback, does that sound right?
#
sebsel
oops, am I spawning too many issues?
#
sebsel
I am confused about how I ended up in this repo, trying to trace that back. I think it was meant for Quill then. Sorry :(
#
sebsel
refrains from opening new issues for aaronpk now
#
aaronpk
no its fine :)
#
aaronpk
works through the backlog
#
aaronpk
wonders what is the best way to start migrating clients to not expect the `me` parameter
#
aaronpk
i'll start with quill in any case
#
aaronpk
need to open issues like this on all micropub clients https://github.com/aaronpk/Quill/issues/79
#
Loqi
[aaronpk] #79 Don't rely on `me` in the callback URL
#
sebsel
yeah, I was starting that, but filed the wrong way, because I misread the buildAuthorizationUrl thing. (that has to have a me)
davidmead joined the channel
#
sebsel
OwnYourSwarm seems fine, I don't use any other at the moment
#
davidmead
aaronpk: getting something odd with OwnYourSwam. I wan’t getting anything come through as my micropub endpoint had errored too many times. checked again and it seems fine now, BUT, I’m getting <p>Checked into <a class="h-card p-location" href="h">h</a>.</p> written into the post which seems weird. No idea what that is. Same for the 2 posts I’ve tried with the ‘import past checkin’ function
#
aaronpk
davidmead: sounds like the Micropub endpoint isn't expecting the value of the URL to be an array
#
[miklb]
davidmead have you updated WP micropub plugin lately? I know there have been some changes in last week since IWS
#
davidmead
just updated it this morning
#
aaronpk
[miklb]: lol I was just typing that
#
davidmead
before i tried the ‘import past checkin’ feature :-)
#
[miklb]
has had tons of cuban coffee, speed typer now
#
aaronpk
I really need to do some cleanup on the OYS dashboard to make it more useful for debugging
#
davidmead
i just checked in to my house, see how a non-imported post would act. it’s shown up in OwnYOurSwarm, just waiting for it to show up in WP
#
aaronpk
Should be almost instant
#
aaronpk
also part of the reason there's no feedback after clicking the button is the button triggers the same flow that the Swarm checkins do
#
davidmead
hmm. not there yet
#
GWG
davidmead: Micropub got a push that does markup for checkins from OYS
lukasros joined the channel
#
davidmead
aaronpk: OwnYourSwarm is still saying my account is disabled
#
davidmead
guessing that’s why it hasn’t posted?
#
aaronpk
Ohh yeah k
#
aaronpk
cause it got too many failed replies probably
#
aaronpk
i think if you do a test post it will re enable it
#
davidmead
eek! did a “post agin” and got a whole slew of errors…
#
davidmead
Illegal string offset 'properties' in <b>/nfs/c03/h05/mnt/56448/domains/davidjohnmead.com/html/blog/wp-content/plugins/micropub/micropub.php</b> on line <b>513</b>
#
lukasros
Is there any live example where I can see JSON feed with _indieweb extension?
#
lukasros
According to the wiki, Known has that.
#
davidmead
aaronpk: but, the post did appear on my blog
#
davidmead
GWG: Good to know. Thx
#
GWG
davidmead: How is the rest of the Indieweb suite treating you?
#
davidmead
seems to be good GWG. last post i sent to twitter looked great and seems to have cleaned up some of the extra markup being pulled though - unless i just hit a sweetspot for the amount of content ;-)
#
GWG
davidmead: Bridgy Publish working for you then? Someone a few minutes ago was having trouble
#
davidmead
i’m hoping to actually make it out to next years summit. not just pop in on video
#
davidmead
ah. having tried that today. let me post something and i’ll let you know
#
davidmead
haven't
#
GWG
davidmead: Anything else outstanding? I'm on a business trip for the next 3 weeks and therefore have nothing better to do out of work than code
#
davidmead
posting through bridgy seems good. just sent this https://twitter.com/davidmead/status/881194600295145472
#
davidmead
pulls the title and a short link
#
GWG
Hmm...
#
GWG
I do have to do something about the shortlink issue.
#
GWG
But if you have shortlinks it isn't one
#
[miklb]
speaking of, I want to get summary/excerpt working. I think it has to be in the post too, at least I had to when I was using Jekyll
#
davidmead
GWG: I’m using the HUM plugin with my own “short” TLD
#
GWG
Me too
#
davidmead
adding a line break might be good when posting though. esthetically
#
GWG
Where?
#
davidmead
so the shortened URL is under the title, or post snippet, in the twitter card
#
davidmead
but that’s just me
#
GWG
That's Bridgy itself.
#
davidmead
aaronpk: posted the issue on my own blog too http://djm.click/blog/b/4kc
#
Loqi
[davidmead] OwnYourSwarm posting issues
#
davidmead
GWG: I would love to get rid of “in reply to: >” when posting a reply to twitter. see https://twitter.com/davidmead/status/881202214907383812 as an example
#
@davidmead
@redcrew I just started using Brave @redcrew. Always good to play a little ? in reply to: > Because browser diversity is… http://djm.click/blog/b/4ks
(twitter.com/_/status/881202214907383812)
#
GWG
davidmead: Who put it in?
#
GWG
I'm guessing you used Micropub?
#
GWG
snarfed and I approach display differently. That looks like his auto-markup from Micropub.
#
[miklb]
agreed.
#
GWG
[miklb]: This is why snarfed has agreed to move from static to dynamic generation of markup.
#
GWG
It allows for more customization. It is just the how we've been debating
#
davidmead
when i post a reply to twitter i have a TextExpander snippet that adds <p>in reply to:
#
davidmead
<a href="" class="u-in-reply-to">[embed][/embed]</a></p> where I can add the URL I’m replying to. Then I type my reply above that.
#
[miklb]
GWG, yep, I like the direction of that discussion.
#
davidmead
and I know that’s me being difficult ;-)
#
[miklb]
davidmead, I had some issues with replies when using the rich twitter embeds, had to make sure the u-url was getting set on what is being stored in the db
#
GWG
davidmead: We're trying to harmonize implementations in that regard.
#
[miklb]
https://gist.github.com/f26236fc71e85af598a2a4a73d65bb39 is what I’m using to set the u-url on that link. Note I’m using post-kinds for these
#
GWG
[miklb]: Although I do like the kind_view template idea for that.
#
GWG
I would gladly split Post Kinds and the templating system.
#
[miklb]
that’s an interesting proposal. Would the templating system work better with mf2 plugin?
[barryf] joined the channel
#
davidmead
would a class on the containing <p>, that could be ignored when posting, help?
#
GWG
[miklb]: I sort of vaguely suggested it. But, generalized, it could be a good solution rather than us writing separately. Then the markup can be in the theme if desired. It might need some changes, but..
#
GWG
davidmead: I think Bridgy has some classes it uses to override its auto formatting.
#
GWG
You can look at the about page on the Bridgy site.
#
davidmead
we only need the “in reply to” on the web site. it becomes extra content in the tweet
#
GWG
davidmead: But the tweet is generated by parsing the site.
#
[miklb]
davidmead the u-in-reply-to should be on the container, and u-url on the tweet you are replying to
#
[miklb]
looks like you have u-in-reply-to on the href
#
[miklb]
er, anchor
#
davidmead
ah - so if i move the u-in-reply-to into the <p> and have u-url on the <a> [miklb]?
#
[miklb]
davidmead I believe so. That’s basically what I have, except `<cite class="h-cite u-in-reply-to">` instead of a `<p>`
#
davidmead
i’ll try that now, see what happens
#
GWG
[miklb]: The cite isn't strictly necessary. In your case, it is because the reply has context
#
[miklb]
sure. I just throw stuff against the wall and see what sticks ?
#
[miklb]
davidmead and what I discovered is that the oembed stores the link in the DB so that’s why I have that little DOMDocument function to find the url and add the `u-url`. Probably should be done when written to the DB instead of when serving the page, but I haven’t revisited it since getting it working.
#
davidmead
[miklb]: nope. get a ‘Bridgy Error: Could not find a tweet to reply to.’ message in WP and it doesn’t send it to Twitter
#
[miklb]
yes, that’s what I was getting until I added the u-url to the embed link.
#
[miklb]
it’s pretty messy
#
[miklb]
assuming you are using rich embeds or however it’s referenced.
#
davidmead
to the <a> or to the [embed]?
#
GWG
miklb, I forget how I renamed it
#
davidmead
as I had u-url on the <a> and it didn’t do anything
#
[miklb]
davidmead. WordPress stores the oembed in the DB for caching purposes. Thus why I cooked up that little script to parse the $embed_html (from post-kinds) to add the u-url.
#
[miklb]
it’s different than what is stored by the plugin iirc
#
davidmead
ah. i’m not using post kinds plugin
#
[miklb]
@davidmead have a link to the last post that failed?
#
davidmead
i just changed it so it’d work :-)
#
davidmead
let me add another one that’d fail
#
GWG
No one needs to use Post Kinds
#
Loqi
[davidmead] Reply to one of my tweets so it’ll fail using Bridgy in reply to: Any chance you’ll be posting videos from Patterns Day @adactio? in reply to: > Rolling out the red carpet for… https://t.co/6T9hhnTzXq — David Mead (@davidmead) July 1, ...
#
davidmead
as an aside it’s really infuriating to me that Twitter now “hides” who you’re replying to in tweets. i end up doubling the persons name in the tweet as I forget
#
[miklb]
davidmead. Only thing I can think of is that there is a second link to your tweet in the source but it is outside the `<p class="u-in-reply-to">`
#
[miklb]
maybe bridgy isn’t picking up the 1st link?
#
davidmead
that’s odd as that’s not how i’m marking it up
#
[miklb]
which may have to do with how WP handles the stored oembed code
#
[miklb]
voodoo
#
davidmead
[miklb] grrrr ;-)
#
davidmead
seems like it is pushing the [embed] out of the <p> maybe
#
[miklb]
indeed
#
davidmead
let me try it without the [embed]
#
davidmead
nope. still has a bridgy error and doesn’t post to twitter
#
[miklb]
I don’t know the differences between mf1 & mf2 to know if not having `h-entry` on the article would make a difference
#
[miklb]
I only see hentry
#
davidmead
i built the snippet i use around https://brid.gy/about#reply
#
davidmead
i know i ran inot issues when using the SemPress WP theme (which I really like) so I swapped back to a general WP theme
#
[miklb]
Only thing I see is that you don’t have `e-content` or `h-entry`. But I’m not versed in microformats enough to say for sure that would make a difference. Maybe try adding the MF2 plugin?
#
davidmead
maybe adding ‘e-content’ to the <p> would help this
#
davidmead
i think i took that out due to the conflict with SemPress
#
[miklb]
right, they both do similar things. There are ongoing discussions on how to prevent the collisions.
#
davidmead
also PESOS Instagram and Swarm content would add that so I’d get double which causes issues
#
[miklb]
also part of the discussion for the micropub plugin to defer markup to themes/plugins before it inserts its own markup.
#
[miklb]
GWG I didn’t mean to suggest that post-kinds was a required plugin. Just a path I chose to take.
#
GWG
[miklb]: I know.
#
davidmead
that works, but gets me back to where i was
#
davidmead
i guess if i were to phrase it as a problem statement it’d be…
#
davidmead
“i want to show the thing i’m replying to on my blog, but not include it in the reply on twitter"
#
[miklb]
davidmead, the `e-content` p tag is being closed before the a tag
#
[miklb]
oh, that’s how the markup on bridgy shows it
#
davidmead
that’s how he has it on https://brid.gy/about#reply
#
davidmead
yeah, but i am adding a <p> in there.
#
davidmead
deleted the tweets & post and tried it again with something different. http://djm.click/blog/b/4m4. same result
#
Loqi
[davidmead] Reply to one of my tweets so it’ll fail using Brid.gy in reply to: Any chance you’ll be posting videos from Patterns Day @adactio? in reply to: > Rolling out the red carpet for… https://t.co/6T9hhnTzXq — David Mead (@davidmead) July 1...
#
davidmead
it pulls in content thats outside the e-content class too
#
davidmead
so i’d have to somehow put the [embed] outside the h-entry, which wouldn’t show up in the post then
#
davidmead
feeling like i’m a very special snowflake with this need [miklb] :-)
#
[miklb]
looks like the u-in-reply-to is still inside a <p> but don’t know if that would mess up the parsing.
#
[miklb]
not at all.
#
[miklb]
I think what you want to do is a common expectation. Appreciate your patience in sorting through it.
#
davidmead
well the expectation for Gen2+ ( i think) would be everything i put in should be sent
#
[miklb]
But since I started with post-kinds I’m not as familiar with the manual method of marking up the post.
#
davidmead
in WP, or any CMS, it would come down to the boxes you fill in. If i put it in ‘box A’ it sends it to website and twitter. if i put it in ‘box B’ it just gets sent to my website, etc.
#
davidmead
I’m trying to do everything in ‘box A’ :-)
#
[miklb]
needs to get that test site up so I can experiment with bridgy.
KartikPrabhu joined the channel
#
[miklb]
davidmead, out of curiosity have you tried adding h-entry to your article classes?
#
davidmead
i thought WP was doing that automagically
#
[miklb]
no, it adds hentry which is mf1 so not sure if bridgy is catching it. SemPress or the mf2/uf2 plugin would also add the h-entry
#
[miklb]
mind you I’ve seen h-entry put on the body tag for single posts, but for testing purposes, adding it to article should be fine.
eli_oat joined the channel
#
davidmead
do you know where the article template is in WP?
#
[miklb]
which theme? check single.php
#
davidmead
Theme is Twenty Seventeen. single.php doesn’t have article in it
#
[miklb]
otherwise, check for a template-parts directory for content.php then
#
[miklb]
but you will need to filter the post_class. one sec
#
davidmead
trying to do it through the WP interface. Doesn’t show me that. Let me FTP in and check
#
[miklb]
you should be able to add this to your functions.php file for now to test https://gist.github.com/miklb/1a0276d511dcefc44f42515714460028
#
[miklb]
going to hold you to that Loqi
#
[miklb]
which is just pulled out of the mf2 plugin ?
#
[miklb]
oops, sorry, one too many ) in the add_filter
#
[miklb]
fixed the gist
#
davidmead
just add this block to the bottom?
#
[miklb]
should be able to.
#
[miklb]
not sure if it would be simpler to just install the mf2 plugin
#
martymcgui.re
edited /event (+641) "/* IndieWeb Examples */ add me"
(view diff)
#
[miklb]
oh, wait
#
davidmead
[miklb] now i don’t see ‘hentry’ or ‘h-entry’ in the source :-)
#
[miklb]
this won’t put h-entry on a single page. one sec
#
davidmead
looks like WP adds hentry to the single page article
#
[miklb]
sorry, copying and pasting and not reading code. I just updated the gist but haven’t tested it yet.
#
[miklb]
the mf2 plugin puts h-entry on the body tag on single posts, so without the companion function won’t get it. I just removed the check for single
#
[miklb]
so the updated gist should put h-entry and hentry on all articles now.
#
[miklb]
I guess we could be doing this in -wordpress but it’s pretty quiet today.
#
davidmead
it’s in there. now let me try and create a post like before
#
davidmead
i’m going to choose a different tweet to reply to. don’t want to piss off @adactio keep reply & deleting to one of his tweets ;-)
#
davidmead
that might have done it [miklb]
#
davidmead
shows as a reply on twitter, but has the embedded tweet on the blog
#
[miklb]
that’s was the goal, yes?
#
davidmead
yep :-)
#
davidmead
doesn’t pass the content that’s outside of ‘e-content’ to twitter so “in reply to:” and the embed stays on the blog
#
davidmead
now to update my TextExpander snippet
#
[miklb]
so you may want to experiment with the mf2 plugin and remove that function at some point.
#
davidmead
i thought i had that at one point. may have deleted it when i moved to SemPress
#
[miklb]
it’s been recently updated and moved to wp.org repo. Now part of the indieweb GitHub repo.
#
[miklb]
available from the wp.org repo I should clarify.
#
[miklb]
it will also automagically wrap `the_content` with `e-content` as well.
#
davidmead
[miklb]++
#
Loqi
miklb has 5 karma in this channel (39 overall)
#
[miklb]
but you may not want that the way you are formatting your reply posts ?
#
davidmead
ah, well wrapping all the content with ‘e-content’ will break what you just fixed for me
#
davidmead
as the [embed] will then be in it
#
davidmead
so i may hold off for now
#
[miklb]
indeed. Can always browse through it and cherry pick any other functions you want to add. Feel free to ping me if you have any questions.
#
[miklb]
Now I’m off to make a ginger bug.
#
davidmead
thanks for the help
#
[miklb]
my pleasure. Glad we could sort it out. Now I know that hentry isn’t picked up in that instance.
#
[miklb]
one suggestion I would make is if you think you are going to stick with 2017 for a bit is to create a child theme and put your functions there so you can update the parent theme if need be.
#
davidmead
yeah. even though i’ve been using WP for years now, i’ve dived too far into how it actually works
#
davidmead
*never*
#
davidmead
when i switched from frontend coding to UX some years back I kinda let it pass me by
davidmead, [barryf], madgoat, KartikPrabhu, KartikPrabhu1 and tantek joined the channel
#
[miklb]
aaronpk I misplaced that link for SSL on localhost you shared. have it handy? Going to give it a go.
#
[miklb]
thanks. Now to see if I can figure this out for my local nginx web server
#
[miklb]
that would be a negative
#
aaronpk
it's tricky at first
#
aaronpk
i think our nginx page has somme good docs
#
[miklb]
what is nginx
#
Loqi
Nginx is one of the two commonly used HTTPd server projects (Apache being the other) https://indieweb.org/Nginx
#
[miklb]
I had it working with a self-signed cert, then something broke, and now I don’t know what is wrong. I’ve used certbot on my VPS, but that’s my extent of doing https
davidmead and KartikPrabhu joined the channel
#
j_juran
Who is https://ssl.indieweb.org/ for?
#
aaronpk
i'm not sure i understand the question
#
j_juran
Who needs an IndieWeb SSL cert?
#
aaronpk
if you want to test sites locally without having to confirm security exceptions, you can add the indieweb ssl root and this will sign certs that your browser trusts
#
KartikPrabhu
would be useful for testing service workers locally for instance
#
aaronpk
you won't get the little "secure" thing with a self-signed certificate https://media.aaronpk.com/Screen-Shot-2017-07-01-15-35-03.png
#
j_juran
Ah, so it’s for testing
#
aaronpk
i mean you can use it in production if you want, i just wouldn't recommend it :P
[miklb] joined the channel
#
jjuran
A lot of things /could/ be used in production. :-P