#ZegnatMy regular expression takes care of most of the returning data problem. All I have left is the what-to-return-when problem.
#ZegnatThe 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
#sebselyeah, the Kirby code does not seem to handle */*
#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.
#rhiaroI 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
#sknebelrhiaro:I think I saw something by dougbeal about it
#ZegnatI 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
#ZegnatFor 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.
#ZegnatI might be proven wrong though, when sknebel and ben_thatmustbeme start reviewing ;)
#sknebelZegnat: 1 PHP file isn't a strong argument, look at JS-devs for what "one file" can be :P
#rhiaroI'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
#rhiaroI 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
#schmartyah, you'll probably have to dig into the (i think) controllers code to find the paths that indieauth expects those callbacks to come in
#rhiaroaha schmarty, you see, I could do that, or I could just ask aaronpk :)
#schmartyi usually find myself doing one and then eventually the other :D
#rhiaroI think this maybe the closest I've ever come to looking at Ruby
#rhiarojust cos I want to run this software doesn't mean I need to understand how it works
#rhiaroI'm actually shocked I managed to blunder through getting it running in docker containers
#schmartyoh right, i forgot indieauth.com is a ruby project. i have become more used to deciphering aaronpk's laravel-based projects.
#rhiaroThanks, 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
#Loqi[aaronpk] #79 Don't rely on `me` in the callback URL
#sebselyeah, 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
#sebselOwnYourSwarm seems fine, I don't use any other at the moment
#davidmeadaaronpk: 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
#aaronpkdavidmead: 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
#aaronpkcause it got too many failed replies probably
#aaronpki think if you do a test post it will re enable it
#davidmeadeek! did a “post agin” and got a whole slew of errors…
#davidmeadIllegal 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>
#lukasrosIs there any live example where I can see JSON feed with _indieweb extension?
#GWGdavidmead: How is the rest of the Indieweb suite treating you?
#davidmeadseems 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 ;-)
#GWGdavidmead: Bridgy Publish working for you then? Someone a few minutes ago was having trouble
#davidmeadi’m hoping to actually make it out to next years summit. not just pop in on video
#davidmeadah. having tried that today. let me post something and i’ll let you know
#GWG[miklb]: This is why snarfed has agreed to move from static to dynamic generation of markup.
#GWGIt allows for more customization. It is just the how we've been debating
#davidmeadwhen 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.
#davidmeadand 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
#GWGdavidmead: We're trying to harmonize implementations in that regard.
#GWG[miklb]: Although I do like the kind_view template idea for that.
#GWGI 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
#davidmeadwould 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..
#GWGdavidmead: I think Bridgy has some classes it uses to override its auto formatting.
#GWGYou can look at the about page on the Bridgy site.
#davidmeadwe only need the “in reply to” on the web site. it becomes extra content in the tweet
#GWGdavidmead: 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
#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.
#davidmeadas 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
#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, ...
#davidmeadas 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">`
#davidmeadi 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?
#davidmeadmaybe adding ‘e-content’ to the <p> would help this
#davidmeadi 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.
#davidmeadalso 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.
#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...
#davidmeadit pulls in content thats outside the e-content class too
#davidmeadso i’d have to somehow put the [embed] outside the h-entry, which wouldn’t show up in the post then
#davidmeadfeeling 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]I think what you want to do is a common expectation. Appreciate your patience in sorting through it.
#davidmeadwell 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.
#davidmeadin 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.
#davidmeadI’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?
#davidmeadi 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
#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
#davidmeadlooks 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.
#davidmeadit’s in there. now let me try and create a post like before
#davidmeadi’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 ;-)
#[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.
#davidmeadyeah. even though i’ve been using WP for years now, i’ve dived too far into how it actually works
#[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
#aaronpkif 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
#KartikPrabhuwould be useful for testing service workers locally for instance