#dev 2018-11-14

2018-11-14 UTC
#
GWG
You use xray for your parsing, right?
#
GWG
Or am I misremembering?
#
[eddie]
Well the content warning is Bridgy Fed parsing my mf2
#
[eddie]
But yeah for local context I use my own xray install
#
GWG
I have been working on my own xray type thing
#
GWG
At IWC Berlin I added RSS support
#
[eddie]
Oh cool! That’s awesome
#
GWG
jackjamieson is using it for his under development Microsub client.
#
GWG
So, I'm adding more support to support him
#
GWG
Because I want the product
#
GWG
But, I built my xray type thing because I tend to like to build stuff myself.
#
[eddie]
That makes sense. Is it a library that is just used by Wordpress plugins or is it a Wordpress plugin itself?
#
GWG
[eddie]: Both?
#
GWG
It can be installed standalone, but it is used as a library by Microsub and Post Kinds.
#
GWG
I'd like it if, like xray, instead of having to write parsing code for 3 different WordPress plugins that need it, if we only wrote it once
#
[eddie]
That’s awesome. Definitely better
#
GWG
The problem is that dependency management in WordPress is a pain
#
GWG
But, either way, I go farther than xray does on a lot of things
#
GWG
I use OGP as a fallback to MF2 when it isn't available.
#
GWG
I try to parse location and tags out of RSS feeds.
#
[eddie]
That’s awesome. I definitely like the OGP fallback
#
GWG
[eddie]: You are welcome to have a look.
#
GWG
While it using WordPress functions for retrieval, I could always do something if someone else wanted to use it.
#
GWG
I suppose I could also have just sent PRs to xray
tbbrown and mblaney joined the channel
#
GWG
But I find writing my own a learning experience
#
[eddie]
All of my code is in node.js and I just have a local installation of xray as a stand-alone app, so I probably don’t have as much use for it as a library but it sounds cool!
#
[tantek]
eddie++ thanks for finding out about WriteFreely - interesting that my guess at client support was right!
#
Loqi
eddie has 46 karma in this channel over the last year (73 in all channels)
#
Loqi
[tantek]: [eddie] left you a message 24 minutes ago: https://writing.exchange/@matt/101066523112656548
#
[eddie]
And yay! I fixed my Bridgy Fed content warning issue!
#
Loqi
woot
#
[tantek]
Oh yeah nice work!
#
[tantek]
was it from p-summary?
#
[tantek]
makes sense
#
[eddie]
Which makes sense. I don’t know why I had p-summary on my notes haha
#
[tantek]
ha - maybe worth a markup test in indiewebify.me - if an h-entry has a p-summary identical to the p-name or p-content perhaps we should advise dropping the p-summary markup (because it doesn't add anything)
#
[eddie]
Ahhh good idea
#
[tantek]
want to file an issue with suggested warning text? https://github.com/indieweb/indiewebify-me/issues - i.e. what warning text would have been sufficient for you to remove the p-summary 🙂
[jgmac1106] joined the channel
#
[eddie]
Will do
#
@Lady_Ada_King
Indie Web Awesomeness: You can use <a rel="me"> to verify you own the sites in your mastodon profile! It would be really cool if you could use mastodon as an authentication provider for https://indieauth.com/
(twitter.com/_/status/1062518206345097216)
dougbeal|mb1 and jjuran joined the channel
#
aaronpk
What is Animoji?
#
Loqi
It looks like we don't have a page for "Animoji" yet. Would you like to create it? (Or just say "Animoji is ____", a sentence describing the term)
#
aaronpk
really?
[eddie] joined the channel
#
[eddie]
!tell grantcodes oh no, did the Microsub notifier app go offline?
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell grantcodes it looks like it hasn’t been running since Nov 7 or 8th, I think?
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell aaronpk Looks like xray DOES support follow posts, it’s just webmention.io that doesn’t (https://github.com/aaronpk/webmention.io/issues/117)
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[EdwardHinkle] #117 Feature request: Add support for follow posts
#
[eddie]
Everything is documented there in case you get inspired 😉
#
Loqi
[Zegnat] I don’t think it should be to fallback as soon as there is a single property you do not recognise, right? More like: if no content is defined and no other display can be generated from other properties fallback to summary if available
#
mblaney
the discussion at the summit was around showing content that was out of context, because you missed a property you didn't recognise.
#
mblaney
I think the example at the time was indiebookclub, it turned out that falling back to summary was a better option that displaying content without the unrecognised properties.
#
gRegorLove
e.g. micro.blog understands photo but not location (as of summit, at least?), so it would publish a photo post and not the location following PTD
#
gRegorLove
and read posts would get to the summary step of PTD
#
gRegorLove
so maybe PTD could be referenced in the micropub spec at some point? Not sure.
#
mblaney
hi gRegorLove doesn't look like /post-type-discovery got the summary update yet.
#
gRegorLove
step 8, right?
jjuran joined the channel
#
mblaney
the change needs to go before step 7, because the issue is that the non-empty content property will be used when we haven't checked for unrecognised properties.
#
Loqi
[manton] #38 add new step to use summary when there are unrecognized properties
#
mblaney
yup and the micropub spec is quite explicit that unrecognised properties should be ignored rather than following the new algorithm.
Klose and [tantek] joined the channel
#
[tantek]
!tell aaronpk per your suggestion and https://twitter.com/Lady_Ada_King/status/1062518206345097216 - is there an issue on Mastodon GitHub requesting IndieAuth support?
#
Loqi
Ok, I'll tell them that when I see them next
#
@Lady_Ada_King
Indie Web Awesomeness: You can use <a rel="me"> to verify you own the sites in your mastodon profile! It would be really cool if you could use mastodon as an authentication provider for https://indieauth.com/
(twitter.com/_/status/1062518206345097216)
[eddie] joined the channel
#
[eddie]
Looks like no official IndieAuth issues
#
[eddie]
and inside of it someone suggests IndieAuth
#
Loqi
[Sylvhem] #4800 Allow Mastodon to be used as an OpenID provider
#
[eddie]
But it's definitely NOT an IndieAuth issue
vilhalmer and [sebsel] joined the channel
#
[sebsel]
re roll your own XRay: we might need a name for that thing, for to me “XRay” now stands for “getting information from any URL”, and I can’t think of a better name for it
#
[sebsel]
but it’s one of those SPOA’s, so more implementations in more languages is nice
#
[sebsel]
what is SPOA?
#
Loqi
single point of aaron is when a relatively early IndieWeb technology is being developed and there haven't been enough implementations to create proper diversity causing an over reliance on one of Aaron Parecki's services in order for the technology to work broadly https://indieweb.org/SPOA
#
[sebsel]
what is jf2?
#
Loqi
jf2 is a working prototype of a simpler JSON serialization of microformats2 intended to be easier to consume than the standard Microformats JSON representation https://indieweb.org/jf2
#
[sebsel]
It could be ‘JF2-parser’, but it also does Silos, so that’s not enough
#
[sebsel]
Although it might be enough of a name for what we need to standardize. The rest is “just add silos”
#
[sebsel]
Silo-aware JF2-parser
cweiske joined the channel
#
Zegnat
semantic data extractor? What do people call JSON-LD / Schema / OGP parsers?
tbbrown, mblaney, [frank], [Vincent], jjuran and swentel joined the channel
#
@kisik21
Ok, ok, ok, I know nobody reads me in Twitter, but just in case: I made my own #IndieWeb site and using http://brid.gy to publish my posts to Twitter. btw if you like this this like will be sent to the site. (https://fireburn.ru/note/1542186992)
(twitter.com/_/status/1062635461720662016)
#
kisik21
Wow, it really works!
#
swentel
it sometimes feels like black magic doesn't it :)
#
kisik21
Not black, but magic. CSS is black magic.
#
petermolnar
transistors are black magic, but that is commonly agreed on
#
kisik21
Okay, question! Is it acceptable to use JS to provide a non-essential feature like highlighting hashtags and linking them to hashtag search on my site? This would be the easiest way to do it for me - just a JS include!
#
petermolnar
of course it is
#
petermolnar
progressive enhancement is always fine
#
kisik21
ok, thanks
#
kisik21
petermolnar++
#
Loqi
petermolnar has 3 karma in this channel over the last year (13 in all channels)
#
petermolnar
I went back to using prism.js for syntax highlighting instead of in-HTML Pygments
#
kisik21
I just need to make owlcarousel2 progressive enhancement
#
kisik21
because if JS is disabled you can't see photo posts for now
#
kisik21
the carousel is hidden by default
#
kisik21
(though h-entry markup is there - readers could pick it up!)
#
petermolnar
this thing provides surprisingly decent fallback for non-js: http://miromannino.github.io/Justified-Gallery/
[grantcodes] joined the channel
#
[grantcodes]
Oops thanks [eddie] microsub notifier is back up
#
Loqi
[grantcodes]: [eddie] left you a message 5 hours, 3 minutes ago: oh no, did the Microsub notifier app go offline?
#
Loqi
[grantcodes]: [eddie] left you a message 5 hours, 3 minutes ago: it looks like it hasn’t been running since Nov 7 or 8th, I think?
#
[grantcodes]
Didn't have it on my list of services to restart!
#
kisik21
petermolnar: I chose owlcarousel because it emulates Instagram's gallery post (or how they call it), and while JustifiedGallery can provide a nice gallery, I think it just doesn't go with my use case...
#
petermolnar
I just wanted to point it out as an example of nice fallback
#
petermolnar
I was thinking of re-adding bookmarks to my site, on the fly generated from the wallabag API, however, I'd like to create batches or even a single page of them. I'm guessing it'd be a h-feed with h-entries with u-bookmark-of -s in them but the questions is, without unique urls, what would the receivers of the webmentions see?
#
petermolnar
would a #id-of-bookmark-entry in the url help?
#
cweiske
I don't think that's widely supported by clients/readers/...
#
petermolnar
that's what I'm afraid of as well
#
kisik21
If I post via webmention by including https://brid.gy/publish/twitter link somewhere in the page, would replies be properly syndicated without me marking the link with extra classes? I'm kinda confused about this u-syndication markup stuff...
#
petermolnar
u-syndication is a link to the [silo] entry from your site
#
kisik21
can I somehow include it if I post via brid.gy?
#
petermolnar
that's tricky; unless you have a copy of the brid.gy response
#
petermolnar
I have this problem as well
#
kisik21
ok, probably will need to hide the bridgy link with display:none, or it will confuse my readers...
#
petermolnar
cweiske: should I try doing it anyway, a single-page bookmarks archive? I could become an small edge-case; nothing like Zegnat though
#
swentel
I hide the bridgy link on the page itself
#
swentel
and I store the syndication url I get back when posting to bridgy
#
swentel
and then display it
#
petermolnar
kisik21: many are doing a section with "Also on" or "This post is also at:"
#
swentel
and bridgy reads my h-feed through the rel="feed" link tag
#
petermolnar
ah, the brid.gy post url, the one for brid.gy to pick up
#
petermolnar
I hide that as well
#
cweiske
sure. it's for your readers after all, not machines :)
#
sknebel
bookmarks are the thing where I think webmentions are among the least important anyways
#
sknebel
I don't think many if any receivers do something with fragments (webmention.io might actually, since I think xray does, would need to test that)
#
sknebel
especially if you don't have commentary, you could also have posts with many bookmark properties, if that matches how you want to present it
#
sknebel
(e.g. a bunch of people post "bookmarks from November" posts once a month
#
GWG
Morning
#
Loqi
morning!
#
petermolnar
TIL: in Chrome, in platform without dark color scheme support - linux, for example, `window.matchMedia("(prefers-color-scheme: dark)").matches` returns false.
#
petermolnar
which makes my site default to light theme, which is not what I want
#
sknebel
morning GWG
#
sknebel
petermolnar: I feel like we talked about this and I forgot the details, but why aren't you checking for "prefers-color-scheme: light" and switch the theme if that matches?
#
petermolnar
it didn't work
#
petermolnar
I need more ground to test though
#
sknebel
didn't work = it was impossible to get the light version?
#
Zegnat
petermolnar: small edgecase nothing like mine? I already did the multiple-h-entries-on-a-page thing actually ;P https://grapefruit.zegnat.net/
#
Zegnat
Parser support is not very good, even with having unique IDs and thus unique fragment URLs
#
GWG
I am having a hard time trying to figure out what to do with multiple h-feeds on a single page
#
petermolnar
Zegnat: ... I should have anticipated that.
#
sknebel
Zegnat: parser support or consumer support? :D
#
sknebel
(Arguably, bit of both)
#
petermolnar
any of them
#
sknebel
we could have parsers surface id attributes on microformats roots
#
sknebel
then consumers could more easily handle fragments
#
sknebel
if that's something that's desired
#
Zegnat
There is a thing in ... XRay I believe ... that supports fragments
#
Zegnat
So there is some support. And people using XRay can then consume those bookmarks
#
sknebel
yeah, xray sort of does that, but had issues, e.g. breaking authorship
#
Zegnat
I think that just fell over on authorship detection in my case.
#
Zegnat
Not if you put the author on every h-entry though. I think I only put it in the root feed, and that was a problem
#
Zegnat
Mostly: your milage may vary, but it theoretically can work
#
Zegnat
At Berlin IWC a year ago I specifically recommended against doing it unless you know what you are doing
#
petermolnar
schema.org let's you reference an element, so I didn't have to include their godless Organisation publisher with each post
#
Zegnat
mf2 lets parsers infer author through authorship algorithm. But combining it with fragment identifier links in a feed page has - by my last testing - zero support
#
Zegnat
At least the particular setup I ended up going with
[jgmac1106] joined the channel
#
sknebel
do we have a nicer word for that statement then "parsers"? cause what's called a "microformats parser" doesn't do authorship or understand vocab at all
#
GWG
Names are hard
#
GWG
I need a set of different mf2 markup styles to test against
[Vincent] joined the channel
#
jeremycherfas
Ooops. Wrong window.
#
GWG
I was hoping you had my testing options
#
Zegnat
GWG, what do you mean by “styles”?
#
GWG
I am trying to figure out how to interpret tantek.com, for example
#
GWG
Top level h-card, multiple h-feeds
#
Zegnat
https://grapefruit.zegnat.net/ if you want another challenge
#
Zegnat
Specifical challenge, get the h-entry from the permalink correctly (with author): https://grapefruit.zegnat.net/2018/04.html#dt201804241055Z
#
Loqi
The end of another experiment.
#
Zegnat
XRay does title, as shown by Loqi, but doesn’t resolve author info
#
GWG
I will test with it
#
GWG
But, I wish there was a list of scenarios to try and address
#
Zegnat
I should document a list of “these are edgecases I have made, and here is why they aren’t parsing”
#
GWG
Sometimes I look at xray for ideas of edge cases
#
sknebel
starting a collection of in-the-wild examples sounds like a good idea
#
GWG
Zegnat, the question is what are you trying to say with your markup
#
Zegnat
The markup on that page is a feed for all entries that month
#
Zegnat
And the entries’ permalinks are fragment URLs on that page
#
GWG
I was speaking in general
#
Zegnat
Then I don’t follow ... markup in general? Every website is different. The markup I link there is a blog
#
GWG
For example, I gathered that tantek puts h-card as a top level item because he's saying that is the most important element of the page.
#
GWG
Whereas many people put h-feed as the top element of their homepage
#
GWG
I am thinking of moving my main feed off my main page
#
GWG
Getting away from the old school blogging type philosophy
#
GWG
Also an interesting line of thought
#
GWG
Should your main feed be your main page?
#
Zegnat
Mine isn’t even on my main URL
#
Zegnat
Or on the same domain as what I treat as my main page
#
GWG
Zegnat, but what are the pros and cons
#
GWG
I am increasingly thinking that if my root page represents me, it shouldn't have my h-feed
#
[jgmac1106]
Are you main page should be your feed if you want it. I will always use a Splash page with an h-card, another page with my feed, and an about me with a more expanded h-card
#
[jgmac1106]
I do choose to highlight a few articles or even rotating feeds on my homepage
#
GWG
Can you restate that first sentence?
#
GWG
I am just thinking of changing mine to the About page being the homepage
#
GWG
With pieces to highlight feeds
#
[jgmac1106]
Sorry typo... Meaning there is no answer beyond your choice of a static homepage or a list of recent posts
#
Zegnat
The question, I think, is much more about discoverability. No matter what someone puts on their main URL, there should probably be a way they can say “look here for expanded h-card”, “look here for a feed to follow”, etc.
#
Zegnat
The con of not having your feed on your homepage is that there is no clean way to tell a reader to follow “david.shanske.com” if it isn’t a feed.
#
[jgmac1106]
I do that by having a link to "About Me" and link to "Posts" humans know that means expanded info "about me" and "feed" what kind of rel would I use so parsers know too?
#
Zegnat
That’s the big question, [jgmac1106]. I believe there are some brainstorms for expanded h-card stuff but not sure anyone consumes it
#
Zegnat
For feed, I think rel="feed" is a thing thesedays?
#
GWG
rel=feed
#
GWG
Sorry, beat me to it
#
Zegnat
Is anyone publishing or consuming that, GWG?
#
sknebel
yeah, that's used.
#
sknebel
even the "old" readers like woodwind did use it, bridgy checks it, ...
#
[jgmac1106]
But humans know what to do. Is it a big question? [chrisaldrich] has an entire page of possible feeds to follow I think.
#
[jgmac1106]
And I find few want to subscribe to my firehose, rather be selective in following just articles or a feed for one specific class or just notes... Lot of people who follow me choose 4-5 different feeds for different channels
#
Zegnat
Do humans really know what to do? If a social reader app asks you who to follow, and you want to follow me, would you enter my URL (vanderven.se/martijn) or would you first go to that site to figure out what page my feed is on?
#
[jgmac1106]
Think I will add a feed menu section to my New homepage... Or my about page embedded in my h-card to make it extra complicated
#
[jgmac1106]
For humans I meant they know About Me is an extended h-card without knowing what an h-card is
#
[jgmac1106]
They know a link called "posts" or "blog" is probably a feed
#
[jgmac1106]
... For edgecases of people who have 37 different feeds... No
#
[jgmac1106]
@zegnat I ran into this with [eddie] site (fixed now) my default decision tree is do you see link to blog or post? Yes click and follow? No use homepage url
#
[jgmac1106]
But most readers take care of this for me. So if I drop your site in inoreader I get a list of everyone of your feeds to choose from
#
[jgmac1106]
[eddie] main feed was off of /timeline I would not have guessed that
#
Loqi
swentel has 17 karma in this channel over the last year (31 in all channels)
#
@swentel
Scared about all the terminology in #indieweb ? I'll guide you next week at @drupalcampbe! Also, a new (breaking - apologies) beta is out, check the release notes if you'd like to upgrade https://www.drupal.org/project/indieweb/releases/8.x-1.0-beta5 - next up RC! https://pbs.twimg.com/media/Dr9GTnWUUAMHrjS.jpg
(twitter.com/_/status/1062645342699745280)
#
Loqi
aaronpk: [eddie] left you a message 8 hours, 37 minutes ago: Looks like xray DOES support follow posts, it’s just webmention.io that doesn’t (https://github.com/aaronpk/webmention.io/issues/117)
#
Loqi
aaronpk: [tantek] left you a message 7 hours, 26 minutes ago: per your suggestion and https://twitter.com/Lady_Ada_King/status/1062518206345097216 - is there an issue on Mastodon GitHub requesting IndieAuth support?
#
petermolnar
re Zegnat it really bothers me there seems to be no way to detect prefers light mode
#
[jgmac1106]
I have seriously thought about using p-category for listing feed options in my h-card... But since sone feeds are actual categories and tags and others are not... Felt wrong
#
[jgmac1106]
@petermolnar I don't understand why doesn't your browser just recognize your light/dark mode preference?
#
Zegnat
My browser (Safari) should know my OS (macOS) wide appearance preference. The question is: how can a website get this information and apply separate CSS styles for it
#
[jgmac1106]
Ohh Safari... I thought the question was about Browsers
#
sknebel
Safari is the only browser supporting this yet at all
#
Zegnat
macOS is also the only OS to have this appearance switch, I think? So this is targetting a very specific subset
#
[jgmac1106]
I actually find it's about 50/50 in k12 schools where kids use the Dark mode in Chrome
#
[jgmac1106]
Ohh okay just used to Chrome and FF where light/dark is a toggle with web extensions
#
[jgmac1106]
I just don't get a the hub bub of adding additional CSS to a site for light/dark when browsers do it already
#
sknebel
because browsers/browser extensions otherwise have to guess styles that might not actually work, or not look optimal
#
sknebel
or need customized per-site styles shipped with them, which is additional CSS with a worse delivery mechanism
#
petermolnar
https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme - "Value: no-preference | light | dark" - I assume no-preference is the default - ie. the light in macos -, which is why my query doesn't work
#
[jgmac1106]
Ahh okay thanks, now I get it... Though never found a site that didn't work in FF
#
Zegnat
You can make Firefox switch colour schemes on websites? I’ve never seen it do that...
#
petermolnar
wait... apparently windows 10 has a similar functionality I was unaware of: https://www.ghacks.net/2018/07/13/firefox-will-support-windows-10s-dark-mode/
#
sknebel
thats for the firefox UI, not websites
#
Zegnat
No mention of it communicating this through mediaqueries though. That just seems to be the dark v light UI mode that is accessible right now
#
petermolnar
sknebel: yes, I'm aware, but that's just a single step to propagate to websites
#
petermolnar
I should have said it's nearly there with firefox
#
petermolnar
but I can't find any docs about planned features around that media query
#
[jgmac1106]
Now I get the difference, thanks
#
petermolnar
(a little voice in my head just sounded the one more thing to browser fingerprint on... meh.)
#
Zegnat
https://github.com/w3c/csswg-drafts/issues/2735#issuecomment-433114041 suggests to me the mediaquery is actually only active in Safari 12.1, I am on 12.0.1
#
Loqi
[adviva] @jonathantneal https://codepen.io/jonneal/pen/vzPwWo/ is working on Safari Technology Preview Release 68 (Safari 12.1, WebKit 14607.1.11)
#
Zegnat
So only people who run preview builds can debug for you. I run all the latest updates, but not quite hardcore enough to run preview
#
petermolnar
and thank you anyway :)
#
Zegnat
No problem, had a bit of a dull moment anyway, waiting for my work phone to get all its updates and be setup
[kevinmarks] joined the channel
#
Zegnat
[kevinmarks]: what I meant in #indieweb is that if you setup your posting client to handle the `web+action` protocol, and I add <a href="web+action:..."> links to my posts, I have no way to fallback
#
cweiske
that's right
#
Zegnat
That’s the bad UX part, imo
#
Zegnat
Though good for privacy reasons
#
Zegnat
petermolnar: I found the tech preview of Safari. Getting window.matchMedia("(prefers-color-scheme: dark)").matches === true and window.matchMedia("(prefers-color-scheme: light)").matches === false
#
petermolnar
that's when you're in dark mode, but what if your OS is in normal (light) mode?
#
Zegnat
The other way around!
#
Zegnat
Looks like your website adapted
#
Zegnat
I can actually toggle your site theme through my OS preferences now, haha
#
petermolnar
that is unless you set it by hand by clicking on the "dark mode" checkbox
#
sknebel
If I remember right, the indie-action thing had an option of passing the details the site
#
sknebel
breaking the privacy aspect, but allowing the site to implement fallbacks
#
petermolnar
thank you very much for the test, Zegnat
#
petermolnar
I owe you a cookie or something
#
Zegnat
petermolnar: no problem. I wonder if it is correct that you are setting my localstorage though, when I haven’t actually touched the on-site switch
#
petermolnar
yes, that is
#
petermolnar
although I probably don't need that
#
petermolnar
lemme revisit that 10 lines of js
#
Zegnat
I’m saying only store the user pref in storage when the user makes a conscious change to the theme. That way I could really switch back and forth with my OS settings only
#
petermolnar
that is a completely valid and reasonable suggestion and I'm about to fix it, yes
#
Zegnat
Let me know when you push that, and I’ll see if this magic new macOS version lets me make a little screencast for you ;)
#
petermolnar
please try now
#
petermolnar
clear localstorage in advance though
#
Zegnat
It no longer detects ...
#
Zegnat
I think something broke on my end
#
Zegnat
restarts Safari
#
Zegnat
petermolnar: looks like you need parentheses around the mediaquery for it to work
#
Zegnat
window.matchMedia("(prefers-color-scheme: light)").matches
#
petermolnar
I thought I can remove those
#
petermolnar
seemed unneeded
#
petermolnar
I was wrong
#
Zegnat
Haven’t looked at that spec, so don’t know. I can only tell you what does and doesn’t work in Safari Preview today ;)
#
Zegnat
Totally works now! Let me see if I can record this
[jgmac1106] joined the channel
#
petermolnar
btw, it would be much simpler without a fallback - the checkbox-localstorage - support
#
petermolnar
it could be done with a mere media query in css
tbbrown joined the channel
#
Zegnat
I still think it is a good thing to advertise user-choice though
#
Zegnat
One of those GitHub issues you linked talked about queries for preferences like light-on-dark and dark-on-light, which are a lot closer to actual user preferences than this UI toggle
#
Zegnat
[jgmac1106]: that’s the sort of theme switching we were talking about ^^^
#
Zegnat
Would have been a fun demo to do in Berlin
#
petermolnar
yeah, it would have been
#
petermolnar
thanks for the video :)
[cleverdevil] and eli_oat joined the channel
#
Zegnat
Not the best video, but gets the point across.
tantek__, [tantek], [kevinmarks], jackjamieson, eli_oat, dougbeal|imac, sebsel, [jgmac1106] and [eddie] joined the channel
#
@vincentlistens
Just published: Implementing the #Indieweb on a static website. Using @jekyllrb @Netlify @github and @nodejs on @heroku This is big article. It took me a long time to write! https://vincentp.me/articles/2018/11/14/20-00/ #Indieweb #Webmention #Micropub
(twitter.com/_/status/1062801768919240705)
tbbrown and [Vincent] joined the channel
#
Zegnat
petermolnar, this just in from vHWC EU: Safari will actually live trigger the mediaquery change. I feel like you need to find a way to have that ;)
#
petermolnar
I'll lose fallback if I do so
#
petermolnar
unless I set up an event watcher
#
Zegnat
Yeah, we weren’t really immediately sure how you could combine it with the user-toggle either
#
sknebel
AutoAuth << a "post" that returns what user you obtained a token for: https://www.svenknebel.de/testing/autoauth/
[eddie] joined the channel
#
Loqi
ok, I added "a "post" that returns what user you obtained a token for: https://www.svenknebel.de/testing/autoauth/" to a new "See Also" section of /AutoAuth https://indieweb.org/wiki/index.php?diff=53912&oldid=53542
#
[eddie]
Yeah the live mediaquery change is pretty awesome. I don't have a user toggle so mine transitions live
gRegorLove joined the channel
#
Zegnat
We have an AutoAuth page now?
#
Zegnat
What is AutoAuth?
#
Loqi
AutoAuth is the working title of an extension to IndieAuth that allows clients to authorize to other servers in the name of their user, without the user being present to confirm each individual authorization flow https://indieweb.org/AutoAuth
#
Zegnat
Cool!
[chrisaldrich] and [kevinmarks] joined the channel
#
[kevinmarks]
sounds like what we used to call two-legged auth
#
petermolnar
Zegnat: still around? Would you please test it again? I may have found a way to toggle it by hand and automatically, but I'm not certain, I may have just broken it :D
#
Zegnat
I am still around, in fact, the vHWC is still going on mumble
#
Zegnat
Also happy to test, let me just grab my work laptop again
#
sknebel
[kevinmarks]: At least in OAuth terms my understanding is that normal IndieAuth would be "two-legged Auth"? but I might be wrong on that
#
sknebel
or well, I guess a part of it is like two-legged OAuth
#
sknebel
but only a part
#
Zegnat
petermolnar, the whole thing definitely switches automatically. But it doesn’t look like manual is being remembered anymore?
#
sknebel
and not the interesting bit (IMHO)
#
gRegorLove
I just emailed with Barnaby about a php-mf-cleaner PR. He merged it, but also said he doesn't have much time to maintain. He'd be willing to move it to indieweb or microformats github org. Thoughts?
#
gRegorLove
I was thinking microformats org, since it's an add-on for php-mf2.
#
Zegnat
I’ve never actually used that package. But if the community is interested in maintaining it, and he isn’t, moving it to the community is nice. Which community I guess depends on the use-case... I always forget what we said should belong to the mf org
#
gRegorLove
It's used in indiewebify.me
#
gRegorLove
And maybe some other indieweb projects. I don't mind contributing to maintaining it. It's pretty solid as-is.
[jgmac1106] joined the channel
#
petermolnar
Zegnat: that's weird, the manual should work as well, let me see
#
petermolnar
can you please try again now?
#
sknebel
gRegorLove: not sure which org is best, guess depends on how specifically to indieweb post types etc it is
#
petermolnar
the problem is: I need to decide which has priority: the manually set value, or the media query
#
petermolnar
obviously it should be the manual
#
petermolnar
unless the media query changes to the other
#
petermolnar
what should happen then?
#
@vincentlistens
↩️ It's certainly an option. Originally, I used a Ruby Gem to pull in Webmentions at build time. It did slow down the build more than iterating over a JSON file by about a factor of 5. But @eleven_ty should be faster than Ruby
(twitter.com/_/status/1062814422673080320)
#
sebsel
petermolnar I think it's very nice! I'm adding it to my list of IndieWeb things I want too :P
#
Zegnat
My first thought is that, as soon as the user manually sets it, you should ignore everything but their setting
#
gRegorLove
I think `getAuthor()` is the only function that might be more indieweb than general microformats. Other functions just help you fetch specific mf2 from the parsed results, and representative h-card.
#
petermolnar
sebsel: I promise I'll make it to a blog post
#
Zegnat
Now it does seem to keep settings, petermolnar, except when I switch and the mq triggers. It then requires a refresh to get back to the cookie’d one
#
petermolnar
maybe not that soon though
#
petermolnar
Zegnat: should be OK now
#
Zegnat
Am I reading the code right that there is a JS listener for mq triggers? That’s cool, didn’t know!
#
petermolnar
user setting has priority, otherwise use the media query
#
petermolnar
you are reading it right
#
petermolnar
neither did I till ~15 mins ago :D
#
Zegnat
manually set it to light, toggled OS settings, then the website still went dark
swentel joined the channel
#
petermolnar
that's... unexpected
#
petermolnar
I'm not certain how that is possible
#
petermolnar
if you've ever clicked the label, it should set a localstorage key
#
petermolnar
if that's there, the media query shouldn't even be checked and watched
#
petermolnar
I'll render it again
#
petermolnar
I need to get some kind of browser which supports this to test
#
Zegnat
Now it seems to work
#
Zegnat
Oh. Nope. Huh. This is really weird ...
#
Zegnat
Maybe it only works with the manual mode set to light ...
#
Zegnat
Nope. It worked for a few changes, I am sure. Then I emptied the localstorage again and it broke
#
petermolnar
with the empty localstorage, it should follow the OS setting
#
petermolnar
in theory
#
Zegnat
Yes. That works.
#
sebsel
Sounds like a good use for true/false/maybe :P
#
sebsel
After bridgy_omit_link
#
petermolnar
so with not null in the localstorage, it should set the theme and shouldn't set a media query/listener
#
Zegnat
So I can’t actually reproduce this well, because now it seems to work again
#
petermolnar
if we found a bug in webkit, we can split the price
#
Zegnat
I’m just going to go to bed, have the browser sleep on it for a night, and I’ll report back around lunch time when I have a lull at work ;)
#
petermolnar
ok, and thank you very, very much for the help :)
#
petermolnar
once we're done, I'll sum it up in a small post with snippets and code for anyone else
#
Zegnat
I am happy to help debug, happy not to be the edge-case this time around :D haha
#
Zegnat
Have a good evening!
#
AngeloGladding
using private mode is often a good way for ensuring all of these opaque storage items are reset
[tantek], j12t, [eddie], [schmarty], [Vincent], j12t_ and [chrisaldrich] joined the channel
#
GWG
tantek: Re your website...why an h-card with multiple nested h-feeds?
#
aaronpk
😭 i had the same question
#
GWG
aaronpk: Did you get an answer?
#
aaronpk
i don't remember
#
GWG
Neither do I