#dev 2017-08-17

2017-08-17 UTC
KartikPrabhu joined the channel
#
loqi.me
edited /js;dr (+63) "[kevinmarks] added "https://twitter.com/brian_d_vaughn/status/897579764935872512" to "See Also""
(view diff)
#
david.shanske.com
edited /Planning (+232) "/* Los Angeles */"
(view diff)
KartikPrabhu joined the channel
#
tantek.com
edited /User:Tantek.com (+139) "/* indieweb community */ archive remaining 2014/UK/Scheduling etherpad links to wiki pages and update ehterpad links to link to wiki pages instead"
(view diff)
davidmead joined the channel
#
david.shanske.com
edited /Planning (+25) "/* San Francisco */"
(view diff)
j12t, eli_oat, tantek and snarfed joined the channel
#
tantek.com
edited /rsvp (+162) "/* Text Design */ attending as another UI synonym for yes"
(view diff)
j12t joined the channel
#
tantek.com
edited /rsvp (+200) "implemented "attending " text shorthand in [[Falcon]]"
(view diff)
jjuran, leg, Kaja_, aaronpk, petermolnar, kants, Ruxton, rhiaro, raucao, Zegnat, ben_thatmustbeme, wagle, sknebel, GWG, sebsel, bear, Kaja, myfreeweb, KartikPrabhu, j12t, plindner, mindB, zoglesby, schmarty, TheGillies, eli_oat[m], AlanPearce[m], cweiske, [jeremycherfas], gRegorLove, tantek, loicm, jeremycherfas, barpthewire, arush, [kevinmarks], barpthewire1, j4y_funabashi, davidmead, eli_oat, jeremycherfas_ and snarfed joined the channel
#
www.boffosocko.com
edited /selfdogfood (+498) "Dave Winer quote"
(view diff)
[miklb] joined the channel
#
[miklb]
hmm, so the 400 bad request error I was getting in Quill posting to WP micropub is gone, but the “endpoint did not return a Location Header” is still there and no photo posts, but the text does.
#
[miklb]
aaronpk thanks for deploying that PR
#
aaronpk
[miklb]: np! I was just about to test it but you beat me to it
#
[miklb]
not exactly sure what next step in debugging is.
#
aaronpk
i think i have a local Known install i can try with
#
[miklb]
think Known & WordPress will react the same?
#
aaronpk
oh oops this is for WP
#
aaronpk
i also have a local wordpress
#
aaronpk
[miklb]: is this the published micropub plugin?
#
[miklb]
no rush, snarfed commented on the original ticket which is what reminded me about it.
#
[miklb]
well, I might be using master of GitHub repo. Maybe I should checkout a tag. One sec.
#
snarfed
[miklb]: does quill show the HTTP headers that your site returned to the micropub request? i'm curious, since it definitely does set the Location header: https://github.com/snarfed/wordpress-micropub/blob/master/micropub.php#L229
#
snarfed
([miklb]: nah git head should be fine)
#
[miklb]
snarfed, no, it just shows the red error message at the top of this issue https://github.com/snarfed/wordpress-micropub/issues/69 (without the 400 Bad Request error)
#
Loqi
[miklb] #69 Missing Location Header
#
aaronpk
moves to #indieweb-wordpress
#
aaronpk
oh gosh, the github OAuth api changed and it's not working with indieauth.com until i update
#
aaronpk
there's an updated omniauth gem for github, but it requires an updated omniauth
#
aaronpk
well this looks like a nice rabbit hole
j12t and snarfed joined the channel
#
aaronpk
github changed their OAuth UI too
#
snarfed
#hugops
#
snarfed
ahaha that's actually a channel with people in it
#
aaronpk
ruby version on the server is too old for some of the new gems ?
#
Loqi
hehe
#
snarfed
mmm yak fur
#
voxpelli
aaronpk: I guess you've seen the additional comments on https://github.com/w3c/websub/issues/107 – I find the conclusion there a bit tricky :/
#
Loqi
[manton] #107 Relax limits on hub discovery
#
aaronpk
yeah it's tricky
#
voxpelli
The commenter there is satisfied, but I believe satisfied through misinterpretation of the spec :/
#
voxpelli
What's the status of the WebSub spec now btw? Noticed a lot of action on it in the last days – preparation for moving to next spec status?
#
aaronpk
yeah we're going to make the PR request soon
#
aaronpk
so right now, the only way to support websub for non xml/html formats is via the HTTP header. maybe this issue would be better described as wanting to allow non-http-header discovery of hubs for alternative content types
#
aaronpk
i think the problem a lot of these discussions face is people jump into a proposed solution without first stating the actual problem
#
aaronpk
so "relax limits on hub discovery" is one potential solution to this problem, but as discussed, causes new problems
#
voxpelli
Yeah, there was probably two issues mixed up: The need for standard discovery mechanisms and the nature of those standard discovery mechanisms
#
voxpelli
Also lack of dogfooding when it comes to the format neutral discovery mechanisms it seems as the use case of it doesn't seem clear
#
voxpelli
I'm myself building such a one now at least
#
aaronpk
[miklb]: indieauth.com login via github is back
snarfed and [manton] joined the channel
#
[manton]
On that WebSub issue, I'm not sure it's possible to have a standard discovery mechanism in JSON, because most JSON formats are completely different. Treating JSON as if it's XML would remove one of the reasons people like it: that it's simple and not overly abstracted to do everything.
#
Loqi
[manton]: [miklb] left you a message on 2017-07-07 at 3:44am UTC: I tried disabling/blocking xmlrpc in WP but no dice on bypassing it and using micropub.
snarfed joined the channel
#
aaronpk
yeah that's a good point. any JSON-based discovery mechanisms are going to be dictating at least some of the structure of the JSON file
#
aaronpk
like at the very least requiring the top level item is an object and has a property with a specific name
#
[manton]
I also completely agree that HTTP headers are the best, most general way to discover endpoints. I just don't think they can be used exclusively because not everyone can control their own HTTP headers.
#
[manton]
I was a little surprised that even WordPress.com, which should be able to use HTTP headers, advertises WebSub links in HTML <link> tags instead.
#
[manton]
And my takeaway from that was that if WordPress doesn't use HTTP headers, what hope is there of your random Jekyll static-based site. ? Not that we should give up... But just that it's not practical to require HTTP headers.
#
jonnybarnes
if http headers and html link tags disagree what should happen?
#
jonnybarnes
I seem to recall that for content-type, browsers use the http header over any in-HTML declaration of content-type
#
sknebel
jonnybarnes: the spec defines the order: headers first, then if XML/HTML check for <link>, then host-meta
sketchess joined the channel
#
jonnybarnes
cool, so its already explicit :)
#
voxpelli
[manton]: totally agree with the Jekyll use case, though just like Atom defines a way to extract generic feed links, so could JSON Feed and then the only thing one would need to do would be to extract the links
#
voxpelli
(And if some other spec also bases its discovery on link relations, which is fairly common, then it could easily/automatically support JSON Feed)
#
voxpelli
Though for that to work WebSub needs to change
#
voxpelli
And there are arguments against it (somehow 5-10 years ago the solution landed in host-meta for a while even)
#
[manton]
During the early discussions of JSON Feed, the idea of a more generic "links" array that mapped essentially to HTML/XML link tags was raised. The thought at the time was that it would be flexible but not as clear as direct support. So that's why the spec has feed_url, hubs, next_url, etc. instead.
#
sketchess
Question: I would like to get a clarification. What difference lies between a meta tag regarding the author and the microformat regarding the author, for example? I try to accomplish a decent understanding of usage and processes of meta tags and microformats.
#
aaronpk
the microformats JSON already has a mapping of html link rels so that's another option
#
voxpelli
[manton]: if one supports generic link relations then JSON Feed and another spec can have support for another without anyone having to support the other one specifically - neither WebSub or it would have to explicitly support the other
#
voxpelli
One can define a mechanism that works with Atom, RSS, HTML, JSON Feed, ABC Feed, XYZ Feed etc
#
[manton]
@voxpelli I'm not sure that's actually different than what we have today. The argument I heard in that GitHub issue was that since WebSub doesn't describe what to do about JSON, new formats can't be technically compatible with WebSub. And that would be true whether there's a field called hubs or links or something else.
#
voxpelli
[manton]: well, WebSub can change
#
aaronpk
i'm looking at the diff between pubsubhubbub 0.4 and websub, and that discovery section is where we tightened things up a bunch.
#
voxpelli
The static site argument is a good one and ensuring new static files can be supported through an as standardized as possible mechanism would be good
#
aaronpk
pubsubhubbub 0.4 said that the publisher MUST include an HTTP header. it also said that if a subscriber doesn't find an HTTP header, it should look for the rels using other mechanisms that are not defined.
#
aaronpk
so we were trying to reconcile that because it doesn't actually lead to interoperability as it was written
#
voxpelli
aaronpk: you know if ActivitStream support WebSub through anything but headers? they have same JSON case
#
aaronpk
afaik they haven't specified anything because most of the transport work is done using ActivityPub
#
voxpelli
Ugh, they invented their own PubSub mechanism?
#
voxpelli
On the case for link relations – we even use such extensively in our internal document format at work: https://github.com/Sydsvenskan/doc_format So even proprietary formats can make use of such decouples standards
#
Loqi
[Sydsvenskan] doc_format: A description of our document format
#
voxpelli
[manton]: perhaps a new issue could be opened which could discuss how to beat solve the specific case of WebSub in static non-HTML/XML files?
#
voxpelli
s/beat/best/
#
voxpelli
By dogfooding such a solution through JSON Feed a good case can perhaps be made
#
aaronpk
so what I'd like to see is a new issue on websub about the fact that the websub discovery step is missing the ability for non-HTML documents to include a discovery mechanism inside the document, whereas that was previously possible in pubsubhubbub 0.4
#
aaronpk
because it does seem like we inadvertently "broke" that aspect of pubsubhubbub 0.4
#
voxpelli
Well, it wasn't really broken, because PuSH 0.4 never really allowed for anything but Link headers, it just pointed out what to do with non-compliant legacy feeds, no?
#
aaronpk
depends on how you interpret that section
#
[manton]
That's what I was trying to get at with my original GitHub issue, to "relax" it to allow other implementations that aren't defined in the spec. But maybe it needs to be re-worded. (I'll also review 0.4, since I'm curious about the change now.)
#
voxpelli
Yeah, the wording of the current issue became such that it suggested that the relaxing should happen by not imposing any kind of standard discovery mechanism at all
#
aaronpk
that's what I was saying about jumping to solutions. it frames the discussion around the particular solution rather than around the actual problem
j12t joined the channel
#
[manton]
Re-reading the issue, I'm not really sure how to rephrase it without saying the same thing. But I agree that the current issue got derailed and we should start over.
#
Loqi
[aaronpk] What I would really like to see is a generic link rel discovery method for JSON formats in general. This would be something JSONFeed could adopt, and also something that WebSub could recommend as the discovery format for JSON documents. At least this...
#
aaronpk
that would make a good IETF spec
#
aaronpk
asks the internet if this exists already
#
aaronpk
yeah i found that one, it seems to be about <a> links
#
voxpelli
It builds upon the Web Linking spec specifically so it should be about <link> ones?
#
[manton]
One other point: the reason JSON Feed has "hubs" instead of "rels" or "links" is also because I think real-time notifications is critical to building new platforms. Burying it under an abstraction will hide it, meaning fewer people will implement it or know about it. (See Dave Winer's comment today, "What is WebSub?")
#
voxpelli
unfortunately has to sign out for the night
#
[manton]
I totally get the desire to have compatibility between multiple JSON formats. But I also think some things are important enough that they can be promoted. For example, we all probably agree that "title" should be a top-level item and not a "name": "title", "value": "Hello" pair.
#
aaronpk
i mean that is another approach websub could take, is to just define "hubs" as a top-level JSON property for discovery in JSON documents
#
aaronpk
again why I point out that it's best to start the issue by stating the problem without any proposed solution
#
jonnybarnes
anyone using bridgy publish with custom twitter text?
#
[manton]
Understood. I think starting over with a new discussion that doesn't make too many assumptions is a good idea.
#
jonnybarnes
i.e. having text on your note with class p-bridgy-twitter-content
#
jonnybarnes
the bridgy docs suggest a link is added to this unless you use the omit-link feature
#
snarfed
jonnybarnes: is it not adding the link?
#
jonnybarnes
well, I’m trying to work out how short to make my notes
#
jonnybarnes
it says if its over 140 chars you’ll get an error
#
jonnybarnes
but that 140 chars needs to include the link bridgy will auto add correct?
#
snarfed
ah good q
#
snarfed
looking
#
jonnybarnes
so if I truncate a long note, do I add an ellipsis and a space myself at the end, and let bridgy append a link to that?
#
jonnybarnes
i know already that the default for bridgy is to truncate, add an ellipsis a space and then the link
#
jonnybarnes
when your not using any bridgy-content classes
#
snarfed
i believe it'll truncate to fit the link if necessary
#
snarfed
will confirm
#
snarfed
feel free to use preview to check!
gRegorLove joined the channel
#
snarfed
i think that part of the docs is actually wrong, and the current code will happily still truncate p-bridgy-twitter-content if necessary. i'll update the docs.
#
snarfed
thanks for the nudge!
#
jonnybarnes
so when I’m making my p-bridgy-twitter-content where I swap my h-cards for simple twiter usernames, I don’t have to worry about length?
#
snarfed
right. i think. confirm with preview!
#
@rubygems
jekyll-webmention_io (2.6.4): This Gem includes a suite of tools for managing webmentions in Jekyll: * Tags *… https://rubygems.org/gems/jekyll-webmention_io
(twitter.com/_/status/898270449896898560)
tantek joined the channel
#
@rubygems
jekyll-webmention_io (2.7.0): This Gem includes a suite of tools for managing webmentions in Jekyll: * Tags *… https://rubygems.org/gems/jekyll-webmention_io
(twitter.com/_/status/898281083900489730)
j12t and tantek joined the channel
#
tantek
is glad to see websub discovery nitty gritty was in here and not #indieweb :)
#
tantek
aaronpk, pretty sure we had several issues about other websub discovery either for specific other formats (JSON(LD)) or making it somehow "extensible" so that folks could make up their own formats in the future and somehow make it work (handwave handwave)
[miklb] joined the channel
#
aaronpk
the way the current spec is written it does not allow for extensibility for new formats
#
aaronpk
not sure how that happened tbh
#
tantek
there was a whole old issue of roughtly, how do we make this work for JSONLD?
#
tantek
and we punted it because no one was bothering to try to prototype anything, it was more like empty handwavy demands
#
aaronpk
i think that was about the delivery step, not discovery
#
tantek
I though it was both
#
Loqi
[sandhawke] Interesting. Do you know of implementations and users?
#
tantek
(crickets)
#
tantek
(for two months)
#
aaronpk
yeah that's the only one i found trying to search through the old issues
#
[miklb]
what is micropub client
#
Loqi
It looks like we don't have a page for "micropub client" yet. Would you like to create it?
#
[miklb]
couldn’t find a link on /micropub for clients like Quill
snarfed joined the channel
#
tantek
Micropub client is /Micropub/Clients
#
loqi.me
created /Micropub_client (+29) "prompted by [miklb] and dfn added by tantek"
(view diff)
#
tantek
that's an impressive list btw
snarfed, davidmead, [aarongustafson], tantek and leg joined the channel