2017-07-10 UTC
davidmead, AngeloGladding and [kevinmarks] joined the channel
davidmead joined the channel
[miklb] and billbennettnz joined the channel
davidmead, snarfed and [miklb] joined the channel
[eddie], prtksxna, davidmead, cweiske and [pfefferle] joined the channel
prtksxna and davidmead joined the channel
# 09:04 Loqi Ok, I'll tell them that when I see them next
# 09:06 cweiske Zegnat, I'd say an empty scope falls under "If the client omits the scope parameter when requesting authorization"
barpthewire joined the channel
# 09:09 Zegnat cweiske, yeah, it is a question of interpretation. Always the NULL vs empty debate.
# 09:09 cweiske there are sometimes technical reasons empty parameters are sent instead of omitting them
# 09:17 Zegnat For things like authorisation and authentication, I am not often lenient
prtksxna_away, davidmead and prtksxna joined the channel
singpolyma joined the channel
eli_oat joined the channel
# 14:17 ben_thatmustbeme Zegnat, sknebel, sebsel, can we talk about doing a code_sniffer cleanup only PR first?
# 14:18 Zegnat Is fine with me. I am happy to rebase #16 after a master update, or even redo the entire PR.
# 14:18 Zegnat It made sense to do it after I had moved function around in the index.php, back when there were only 3 commits on the PR ;)
# 14:20 Zegnat Maybe fix-up and merge #20 onto master first, so that one doesn’t need rebasing?
# 14:20 sebsel Okay with me too, there is a lot going on in #16, so splitting up might be a good thing.
# 14:21 ben_thatmustbeme so as far as standards, i guess it doesn't matter to me too much, but i do have big preferences, no side-effects, and always {}s
# 14:22 Zegnat Most styleguides force {}s right? What do you mean by side-effects? PSR1 calls function definitions in a logic file SideEffects, but we can’t get around that unless we start using multiple files.
[jemostrom] joined the channel
# 14:26 Zegnat Oh woops! return-requested-scope branch is based on data-validation and not on master!
# 14:27 sebsel sorry, I made this thing way more complicated than needed
# 14:27 Zegnat Didn’t notice that before. We can hold off on that one then and first do a styleguide fix on master
# 14:30 Zegnat Ah, gotcha! Yes, I am cleaning up that if right now, commit incoming.
# 14:30 Zegnat Then I am happy to merge it into the data-validation branch and we can close the PR.
# 14:31 aaronpk I don't mind if($a=0) if the only time $a is used is inside the if()
# 14:32 Zegnat Are you ready to commit, sebsel? Or should I continue with commit and push?
# 14:33 Zegnat aaronpk, the problem is more that we don’t want a falsey check there. '0' is a valid scope, but if ($scope = '0') {} will not run.
[pfefferle] joined the channel
# 14:34 aaronpk ah yeah, normally i only do it when there's *also* an == in there
# 14:34 ben_thatmustbeme and many times it can be done incorrectly unintentionally, then as a reader you have to double check if they actually meant to do that, etc
snarfed joined the channel
# 14:36 Zegnat sebsel lgtm on that commit. Though I personally would have gone !=='' over !empty(), I find the first more explicit.
# 14:36 Zegnat But those are personal preferences more than anything
# 14:39 Zegnat ben_thatmustbeme, just go --standard=PSR1,PSR2 --exclude="PSR1.Files.SideEffects" ?
# 14:40 sknebel someone make a readme section or contributing.md with what exactly I have to run and I'll try to fit to it ;)
# 14:44 Zegnat Good with me. I just tacked on the exlude so it wouldn’t complain about the function definitions within the logic file
# 14:45 Zegnat I don’t think PSR has a rule about doing that at all
# 14:50 Zegnat Will UnconditionalIfStatement catch it maybe?
# 14:58 Zegnat $ phpcs --standard=PSR1,PSR2 --exclude="PSR1.Files.SideEffects" index.php
# 14:58 Zegnat Works for me with the exclude, ben_thatmustbeme. I just updated to version 3.0.1 (stable).
# 15:02 Zegnat No. I am not sure what sniffer we need for that
# 15:11 Zegnat Can’t find any rule or sniff that detects that behaviour ben_thatmustbeme. So either we have to create our own sniff or just define it as a code preference outside of phpcs
tantek joined the channel
# 15:17 Zegnat I just merged #20 into #16, so that’s one PR down. Thanks sebsel for bringing up the extra scope support.
[miklb] joined the channel
# 15:20 sknebel so we are now reviewing an even bigger PR? that's not going to make it faster ;)
# 15:22 Zegnat If we handle codestyle in a separate PR soon, I will rebase on master and maybe squash the commits together. But it was always going to be a messy review as it moves parts of the original up-and-down in the file. No way around that.
# 15:32 Zegnat We can also just merge #16 and call it a day, hahaha
[xavierroy] joined the channel
# 15:47 Zegnat Ugh, good catch sknebel, best to fix the htmlspecialchars before merge. Not sure why I removed those/forget to add those.
# 16:02 Zegnat I never use the autofixer, that way you never get rid off bad habits.
tantek joined the channel
# 16:09 Zegnat Why the 2 or 3 spaces between $variable and =, ben_thatmustbeme? Could that be normalised to “1 space between longest variable name and = sign”, or something?
arush joined the channel
# 16:14 ben_thatmustbeme for blocks of variable that all tdo the same thing, it can be useful, but i'm good with either way
# 16:15 Zegnat I usually go with the exactly-1-space-around rule, but I don’t have anything against aligning things like = and ? and : when they are in a block like that. But I would always align them based on 1-space-around for the longest one.
KartikPrabhu joined the channel
# 16:16 Zegnat That’s splitting hairs though, and that block disappears in #16 with the addition of filter_input anyway.
snarfed and dougbeal|mb1 joined the channel
# 16:26 Zegnat line 27 of setup.php with no space between : and ?> is my only other irk, ben_thatmustbeme. Otherwise it LGTM and can be merged.
[jeremycherfas] joined the channel
# 16:36 Zegnat That looks good to me. I also do not mind explicitly adding the semicolon everywhere for the echo's :)
[chrisaldrich] and [xavierroy] joined the channel
# 16:40 sknebel otherwise no feedback from me, due to lack of clue on my part ;)
# 16:41 sebsel I don't feel experienced enough to share my preferences :) please set rules.
# 16:42 Zegnat The real pain will probably be rebasing on this.
# 16:44 ben_thatmustbeme Zegnat, yeah, might be easier to just run a codesniff on your branch then do diffs to rebuild your changes as a whole new commit
# 16:44 sebsel I got the Atom package that complains in-line. It complains about ALL my Seblog code now.
# 16:46 sebsel (mostly because Kirby uses 2 spaces instead of 4-spaces / tabs and I adopted that)
# 16:48 Zegnat That contributing file change is also fine with me. Merge whenever!
barpthewire joined the channel
snarfed and arush joined the channel
snarfed, snarfed1 and gRegorLove joined the channel
prtksxna joined the channel
snarfed joined the channel
# 18:46 Zegnat Back from dinner, looking now, ben_thatmustbeme :)
snarfed joined the channel
# 18:49 Zegnat If that’s the case, a simple rebase might work after all :p
# 18:49 Zegnat Yeah, I am not sure why git is being so nice to us
snarfed joined the channel
KartikPrabhu joined the channel
# 18:58 ben_thatmustbeme it steps on the old way of doing conneg, but i'm not sure if your code covers it fine
# 19:01 Zegnat Otherwise, if you have no problems with #16, I would say lets merge it before it gets out of hand again
# 19:02 Loqi [Zegnat] #15 First pass at content negotiation
# 19:03 Zegnat Yeah, conneg has been moved into its own function on 16
# 19:03 Zegnat One of the small things I wish I hadn’t done but had kept to its own PR
# 19:03 Zegnat Which is why I would love to get 16 in now. Giving us a blank slate to iterate on.
# 19:06 Zegnat grabbing latest commits with your merge now. Will try and use it to login at some places
# 19:10 Zegnat My login tests worked, so I am merging. If other clients have problems that will simply be future issues
# 19:11 Zegnat I have now hit the big green merge button. Progress!
# 19:12 sknebel interesting that you can't reacji to merges or approvals
KartikPrabhu joined the channel
# 19:15 Zegnat ben_thatmustbeme feel free to hit the big green button on #21. Then we just need to fix up #18 a little and we are back to a clean slate
# 19:21 Zegnat Unless sebsel unchecked it, I think you can commit to his branch if you just want to fix that one sentence and merge afterwards.
# 19:22 Zegnat And I think scope works completely now, whether authorisation works all the way through will depend on the user’s token-endpoint though
[colinwalker] joined the channel
# 19:33 [colinwalker] !tell Pfefferle When calling get_linkbacks() and looping through them is there an easy way to reverse the order?
# 19:33 Loqi Ok, I'll tell them that when I see them next
# 19:34 Zegnat You can when you make a PR. Little known feature, ben_thatmustbeme
barpthewire joined the channel
# 19:42 Loqi ben_thatmustbeme has 15 karma in this channel (248 overall)
# 19:42 Loqi zegnat has 21 karma in this channel (111 overall)
# 19:42 Zegnat ben_thatmustbeme++ for the spring cleaning :D
# 19:42 Loqi ben_thatmustbeme has 16 karma in this channel (249 overall)
dgold joined the channel
# 19:48 Loqi dgold: tantek left you a message on 2017-04-12 at 7:45pm UTC: re: 10C definitely worth requesting that bits be open sourced for helping add more indieweb friendly functionality, like perhaps the markup templates so mf2 can be added
# 19:49 dgold whew - obvs been a while since I was in here
# 19:49 dgold I've been struggling through getting micropub working - using php
# 19:49 dgold I have set syndication query results - two results for now
# 19:50 dgold but quill isn't showing them - ergo I deduce that I have set the response incorrectly
tantek joined the channel
# 19:51 sknebel dgold: I get a form-encoded response, pretty sure that has to be JSON
# 19:52 aaronpk (it even sends an accept: application/json http header)
# 19:52 dgold just because it sends it, doesn't mean I acknowledge it (yet) :)
# 19:53 Zegnat aaronpk, most people don’t even think to send them ;)
# 19:55 dgold so, I need to take the response, create an array, and then spit out json
# 20:06 sebsel yaay for all the selfauth progress btw, Zegnat ben_thatmustbeme
# 20:06 sebsel Just tested it with tokens.indieauth.com and Quill: scopes seem to work!
# 20:08 Loqi sebsel has 7 karma in this channel (30 overall)
# 20:09 ben_thatmustbeme of all the code i've written, its the tiny lib thats 2 files is the one that has had the most interested in it, lol
tantek joined the channel
# 20:10 Zegnat It is all about selfdogfooding, ben_thatmustbeme. This is now my main login for indieweb.org
# 20:10 Zegnat And if OpenID on IndieAuth gets fixed (I might look into that next), this will also be my main login on StackExchange
KartikPrabhu joined the channel
# 20:16 sknebel dgold: key name "syndicate-to", not "syndication"
snarfed joined the channel
snarfed joined the channel
snarfed joined the channel
# 21:22 snarfed aaronpk Zegnat: your Accept header comments made me laugh, because:
# 21:25 Loqi [Zegnat] #12 Default to application/x-www-form-urlencoded on verification
[chrisaldrich] joined the channel
[shaners] and snarfed joined the channel
[kevinmarks] joined the channel
[miklb] joined the channel
# 22:33 aaronpk probably easiest way is to write it into a hidden <input> tag iin php, then read it from JS
# 22:34 sebsel Oh, yeah! I was thinking about <script> and stuff, but then you have scopes wrong.
tantek and snarfed joined the channel
# 23:05 Loqi [sebsel] #6 Add timezone and metric options
# 23:05 sebsel now that I added timezone options I should honour mine. Good night!
AngeloGladding joined the channel