#dev 2018-02-14
2018-02-14 UTC
KartikPrabhu, eli_oat and [cleverdevil] joined the channel
# [cleverdevil] Blurgh. My fix for Known definitely fixed auth for Together / Aperture, but it seems to have broken things for Quill.
# [cleverdevil] Sigh.
# grantcodes Well together now supports read / unread status π
# grantcodes Both the mark last read entry (for mark all as read) and individual read / unread
# grantcodes UI ain't great for it but it works.
# [cleverdevil] [aaron_pk] so, the scope wasn't actually being passed back properly, and I changed it in one case and it works, and in this other case, now its not passing back scope at all.
# [cleverdevil] `The token endpoint did not return a "scope" parameter. The scope parameter lets this client what permission the token represents.`
# [cleverdevil] That's awesome, [grantcodes] π
# [cleverdevil] Nice work.
# [cleverdevil] So, now i need to figure out what's broken.
# grantcodes Hmmm any more info on that ssl error. It's fine for me
# grantcodes The only errors I get are mixed content related
# [cleverdevil] Oy, I find this code very confusing.
# aaronpk it was trying to hit https://togetherapi.tpxl.io/ but that has a cert for accounting.tpxl.io
# [cleverdevil] [aaron_pk] when I get that response from Quill, I am assuming it has already received the token, and is sending a request to my token endpoint to verify it?
# [cleverdevil] Okay, then what would that response indicate?
# [cleverdevil] Got it.
# grantcodes oh aaronpk you had a cached version. PWA so you potentially need to reload twice to clear the caches
# [cleverdevil] The "raw response" it shows me looks like: "access_token=XXXXXXXXXXXXX&me=https%3A%2F%2Fcleverdevil.io%2F"
# [cleverdevil] So, scope is entirely missing.
# [cleverdevil] Though, I am not sure if Known is somehow stripping it out because the value is empty.
# [cleverdevil] Also, this worked before, so I can definitely narrow it down to the same three lines I changed in my first attempt.
# [cleverdevil] That's good news, since now I just need to determine why scope is empty.
# [cleverdevil] (In some cases)
[tantek] joined the channel
# grantcodes aaronpk: now seeing an error about missing scope for searching, is there an undocumented scope I'm missing?
# grantcodes Ha no worries. I did think i had every scope imaginable
# grantcodes yep works now thanks aaronpk
# [cleverdevil] Found the exact line where things are failing.
# [cleverdevil] Now I just have to figure out why scope is being cleared out.
# aaronpk [tantek]: ah the "how to consume" section says "look for the first h-feed" maybe that's what you were thinking of https://indieweb.org/feed#How_To_Consume
# aaronparecki.com edited /h-feed (+466) "/* Brainstorming */ copy multiple h-feed from irc" (view diff)
# [cleverdevil] Bizarre... scope isn't even being passed *into* my endpoint.
# [cleverdevil] So, this is weird. When I authorize with Together on my latest code, a token gets created with the proper scope.
# [cleverdevil] When I authorize with Quill, a token gets created with a *blank* scope.
renem joined the channel
# [cleverdevil] [grantcodes] also, the unread counts look a little weird in Safari - https://cleverdevil.io/s/F1gyexP1pU.png π
# grantcodes Yeah that's just how they look for now
# [cleverdevil] Oh! Gotcha π
# [cleverdevil] It works great, though. Very nicely done.
# [cleverdevil] So, I just double checked, and when I auth with Together, it works great, but with Quill, the scope is empty. I have zero clue what they are doing differently. The scope is not being passed in for some reason.
# [cleverdevil] Thanks for the idea, [aaron_pk];)
# [cleverdevil] It says "create update"
# [cleverdevil] And I see that in Known when it hits the approval page.
# [cleverdevil] But, somewhere along the line, its just disappearing.
# [cleverdevil] anomalily ++
# [cleverdevil] anomalily++ too.
# [cleverdevil] Its just so *strange* that it works with Together.
# [cleverdevil] post create delete update read follow mute block channels
# [cleverdevil] Yes.
# [cleverdevil] Its... not that smart.
# [cleverdevil] So, it doesn't really know anything about scopes afaict,.
# [cleverdevil] It just takes whatever is requested in.
# [cleverdevil] Then, displays it to the user.
# [cleverdevil] Then, stores the token along with its scopes.
# [cleverdevil] (Just verified I get the same behavior with OwnYourGram)
# [cleverdevil] In the database, its stored with an empty string for scope.
# [cleverdevil] Which matches what I see being passed in as its saving the token.
# [cleverdevil] That's where I am a bit out of my depth in the code.
# [cleverdevil] FWIW, here is the commit that I made that *fixed* Together. -> https://github.com/cleverdevil/Known/commit/cb54e13cfa0019a80c7e9286afb1cd38efd2b1d4
# [cleverdevil] It basically had hardcoded the scopes to "post".
# [cleverdevil] I changed it to read them from whatever is passed into the endpoint, and then to save them.
# [cleverdevil] For Together, this resulted in the proper scopes getting saved, rather than just "post."
# [cleverdevil] But, now, Quill/OYG break.
# [cleverdevil] Heh, I am at 30k feet flying back to LA from DC.
# [cleverdevil] π
# [cleverdevil] Oh?
# [cleverdevil] Ah. Welp. Sounds like it needs more of a refactor.
# [cleverdevil] Ah hah
# [cleverdevil] It does
# [cleverdevil] Sec.
# [cleverdevil] I think I can grab it from the Auth::verifyCode result.
# [cleverdevil] π
# [cleverdevil] Thank you for your extra set of eyes!
# [cleverdevil] I didn't fully grasp the flow, [aaron_pk]++
# [cleverdevil] This should now work in *both* cases.
# [cleverdevil] Prepping an updated PR to Known.
bengo, [xavierroy], KartikPrabhu and tantek joined the channel
# KartikPrabhu j12t: here is that blog post https://kartikprabhu.com/articles/href-in-svg
tantek and bengo joined the channel
# KartikPrabhu SVG is gaining more steam due to all the screen-sizes for devices now so hopefully this gets fixed
# KartikPrabhu of course no worries
[mifga], [mrkrndvs], tantek, [pfefferle], bengo, barpthewire and [gerwitz] joined the channel
# KartikPrabhu [gerwitz]: yes I am a big fan of SVG
# KartikPrabhu Ruxton: for modern browsers it does
# KartikPrabhu oh yeah I have almost forgotten about IE :P
AngeloGladding joined the channel
tantek, jeremycherfas and [kevinmarks] joined the channel
# [kevinmarks] How does ie mess up?
[gerwitz], barpthewire, [xavierroy], [mrkrndvs], leg and jeremych_ joined the channel
# @sadboy_e hoje o bob estΓ‘ muito web-anti social, ele nΓ£o responde minhas webmensagens e webmentions (twitter.com/_/status/963777094697259009)
# sarahmundy.com created /User:Sarahmundy.com (+136) "Created page with " <span class="h-card">
{{sparkline| https://sarahmundy.com/wp-content/uploads/2018/02/me.jpg}}
[[User:sarahmundy.com|Sarah Mundy]]</span>"" (view diff)eli_oat and sebsel joined the channel
# petermolnar.net edited /site-deaths (+263) "adding sudden death of dasklub.com to 2017 deaths" (view diff)
gobengo, eli_oat, AngeloGladding, KartikPrabhu, Zegnat and Kaja_ joined the channel
# grantcodes Hey Zegnat you about just now. I'm just trying to fix https://github.com/grantcodes/micropub/issues/7#issuecomment-362311625 and need some info on link headers
# Loqi [Zegnat] From my testing (using the master branch here as a dependency in Omnibear), this fixes relative URLs in headers! π
Unrelated to relative URLs, but my testing turned up a small bug in the rel matching logic: https://github.com/grantcodes/microp...
# grantcodes Ok think the main thing is can `rel=` contain multiple values eg `Link: </endpoint>; rel="token_endpoint authorization_endpoint"`
# aaronpk I have a bunch of test cases for that here https://github.com/indieweb/link-rel-parser-php/blob/master/tests/BasicTest.php
# grantcodes Cool, then the fix that Zegnat suggested might not work π€ not sure it's even an issue to be honest
# grantcodes Yeah I just realised it would work because of the space between the two rel values.
eli_oat joined the channel
# grantcodes Don't understand the "mixed <url>-rels", can you give an example
snarfed and tantek joined the channel
# grantcodes Cool thanks
[eddie] joined the channel
snarfed joined the channel
# grantcodes Next challenge is a test suite so I don't have to think so much about all this...
# aaronpk [eddie]: hm I do not... tho there is a hint of that here https://github.com/aaronpk/XRay#discovering-content
snarfed1 joined the channel
# grantcodes No problem, think it's all fine. Published an updated version on npm
# grantcodes Going to test on sink with omnibear just now
[kevinmarks] joined the channel
Kaja_ joined the channel
# grantcodes Yep, same for me. I'll investigate a little
snarfed joined the channel
eli_oat, tantek, jackjamieson and [eddie] joined the channel
# [eddie] aaronpk and others interested, I created a github issue for cross-site replies in micro.blog that contained all the potential options brought up in micro.blog slack: https://github.com/microdotblog/issues/issues/75
# snarfed wow i'm pleasantly surprised that all the formatting etc translated over from https://eddiehinkle.com/2018/02/14/5/reply/ to https://github.com/microdotblog/issues/issues/75
# tantek tl;dr summary: replies to issues will just be like "normal" /reply /note posts, except they *will not* be POSSEd to Twitter (new functionality for me lol). issues will be /reply /article posts that will *both* not be shown in my "articles only" views (sidebar box, articles Atom feed), and *also* not POSSEd to Twitter.
[mlopatka] joined the channel
# snarfed plug https://eddiehinkle.com/2018/02/14/5/reply/ into https://brid.gy/github/EdwardHinkle and click preview to see
# tantek yo dawg https://github.com/microdotblog/issues/issues/ I can't even
# KartikPrabhu what if the github username is issues too
# KartikPrabhu gaah!
# KartikPrabhu yeah
# KartikPrabhu also a github clone called issues.com
# KartikPrabhu inssue-ception
[sebsel], [mrkrndvs], KartikPrabhu and tantek joined the channel
# KartikPrabhu if anyone wants to test browsers other than Firefox, Safari, Chrome, Opera for this https://kartikprabhu.com/articles/href-in-svg feel free to reply with results
gRegorLove, [kevinmarks], snarfed, [eddie] and sebsel joined the channel
# grantcodes Oh yeah fixed that, just not pushed it yet. Trying to improve the maps just now.
[kevinmarks] and [cleverdevil] joined the channel
# aaronpk email << [https://blog.fastmail.com/2018/02/14/email-is-your-electronic-memory/ Email is your electronic memory]
# Loqi ok, I added "[https://blog.fastmail.com/2018/02/14/email-is-your-electronic-memory/ Email is your electronic memory]" to the "See Also" section of /email
[chrisaldrich] joined the channel
# snarfed re unread indicators in readers...i vaguely remember a postmortem from a google reader PM, or someone similar, describing how people have multiple, fundamentally different usage models for readers, and feel strongly about using theirs, and how it's very difficult (maybe impossible) for a single app to support them all well, since they conflict so much
# [kevinmarks] I wrote a bit about that in j.mp/twittertheory