#dev 2019-12-19

2019-12-19 UTC
KartikPrabhu, jgmac1106 and beko joined the channel; capDiscord[m] left the channel
#
@ChrisAldrich
↩️ I’d love to build an aggregation hub/community site using webmentions like #IndieWeb News or http://IndieWeb.xyz. #WebJealousy https://boffosocko.com/2019/12/18/indieweb-jealousy-list/?replytocom=273173#respond
(twitter.com/_/status/1207506137190289409)
[Michael_Beckwit and swentel joined the channel
#
swentel
morning
#
Loqi
good morning!
vika_nezrimaya, cweiske, asymptotically and KartikPrabhu joined the channel
#
GWG
Morning
#
Loqi
rise and shine!
jgmac1106, KartikPrabhu, [schmarty] and [jgmac1106] joined the channel
#
Loqi
ok, I added "https://twitter.com/martingund/status/1207327648093003777" to the "See Also" section of /Disqus https://indieweb.org/wiki/index.php?diff=67411&oldid=65391
[davidmead] joined the channel
#
jgmac1106
I create an RSS feed of any flickr photo I favorite and add it to my img credit page, looks like flickrs fav rss feed though publishes by date photo was added and not when I favorited
KartikPrabhu joined the channel
#
beko
The description of https://de.wordpress.org/plugins/indieweb/ suggests G+ that is basically RIP [for public usage]. Mayhap a good replacement would be Mastodon now that Bridgy and Granary started supporting this too.
#
Loqi
[IndieWebCamp WordPress Outreach Club] Beschreibung The IndieWeb Plugin for WordPress helps you establish your IndieWeb identity by extending the user profile to provide rel-me and h-card fields and optionally adding widgets to display this. It also includes a bundled installer for a cor...
#
beko
wrong channel, sorry :D
[tantek] joined the channel
#
[tantek]
heads-up [KevinMarks] KartikPrabhu jonathanneal and anyone else who has worked on Fragmention and/or Marginalia — kind of a big Twitter thread blowing up yesterday / today: https://twitter.com/bz_moz/status/1205542887150247936
#
@bz_moz
@BrendanEich @tomayac @yoavweiss @chrishtr @DanielBratell @slightlylate @othermaciej Official Mozilla response to this will be at https://github.com/mozilla/standards-positions/issues/194 -- we are still trying to sort out why exactly Google decided to not go with the existing fragmentions work and instead went off to create its own thing, and what that means in terms of what we should do.
(twitter.com/_/status/1205542887150247936)
#
[tantek]
You should feel free to chime in to any of the tweets in that thread with your own experiences, opinions, concerns etc.
#
Loqi
yea!
[KevinMarks] joined the channel
#
[KevinMarks]
My fallback goal would be to get them to accept the fragmention syntax as a fallback for their convoluted one.
#
KartikPrabhu
there seems to be lot of "search engine" logic like hiding the fragmention from the end page, which is really not useful for anything I know
#
[tantek]
KevinMarks, I don't see a reason to prioritize ScrollToTextFragment syntax at all since it's mostly about benefitting search engines
[schmarty], andyDiscord[m], vershimajrDiscor and vershimajrDisco4 joined the channel
#
jamietanna[m]
aaronpk: What do you think about adding support to Aperture for raw parsed MF2 data? I've just added support for generating an `h-feed` MF2 in https://meetup-mf2.jvt.me/Nottingham-AWS-Meetup/events (blog post is in the process of being written!) with the idea that it'd be cool to subscribe to it from Aperture and keep up to date with all my events
#
aaronpk
I think it already supports that
#
jamietanna[m]
Hmm ok - I've tried adding it but I'm getting `No feeds were found at the given URL`, not sure if it's that maybe it's not the same format that it's expecting?
#
aaronpk
hm, maybe the thing that checks for feeds isn't expecting that but I thought it would
#
aaronpk
running it through xray looks good
aaronc joined the channel
#
jamietanna[m]
oh that's weird
#
aaronpk
ok yeah it's the part where it's checking for feeds before actually parsing it that's not finding it
#
jamietanna[m]
Is that something I need to fix on my side? Or that needs a tweak in Aperture?
#
aaronpk
it's something I need to fix in xray
#
jamietanna[m]
But doesn't xray parse it ok, as seen above? Or is it when xray's used as a library not a tool?
#
[schmarty]
hmm. i had my aperture's watchtower die for a while. is there a way to kick it to notice it is time to check feeds again? it's just sitting at watching tube watchtower.
#
aaronpk
there's a separate step aperture does that checks a url for feeds
#
aaronpk
that's still part of xray, and it fails there
#
[schmarty]
oops unrelated aperture discussion 😅
#
aaronpk
[schmarty]: hmm as long as the cron job in watchtower is working it should be scheduling new check jobs still
#
[schmarty]
ahh, i think it's the cron. i had to explicitly switch watchtower to php7.3 'cuz running automatic apt updates made php7.4 the default.
#
[schmarty]
the cron was also running php 7.4
#
aaronpk
oh yeah
#
[schmarty]
that was it! away it goes.
#
[schmarty]
aaronpk++ this aperture/watchtower setup is way out of date but still cranks along very well.
#
Loqi
aaronpk has 54 karma in this channel over the last year (199 in all channels)
#
aaronpk
cool cool
#
[schmarty]
i recently had a feed update that only seems to update at christmas time and it reminded me i have been on this system for _a while_
#
jamietanna[m]
aaronpk if you let me know roughly where I need to look in xray, I don't mind raising a fix, as I may have a bit of time this evening
#
aaronpk
jamietanna[m]: looks like right now if it sees application/json content type then it assumes jsonfeed. that'll need to get updated to see if it looks like an h-feed https://github.com/aaronpk/XRay/blob/master/lib/XRay/Feeds.php#L67
#
jamietanna[m]
thanks, that sounds like a reasonable assumption!
#
jamietanna[m]
aaronpk is there a better content-type I could return so consumers are aware it's MF2?
#
jamietanna[m]
(aside from just making it not `application/json`)
#
aaronpk
I don't think we've tried to come up with one yet
#
aaronpk
let me check
#
aaronpk
not sure which of those is actually in use
jgmac1106 joined the channel
#
jamietanna[m]
Looking in the Xray response: `source-format: "mf2+json"` so I think I'll try ` application/mf2+json `
#
aaronpk
ok! that'll make checking for that easier
#
aaronpk
the trick is xray will need to actually look at the object there so that it returns false if it finds a single mf2 object like h-entry rather than actually a feed
[snarfed] joined the channel
#
[snarfed]
fwiw granary uses `application/mf2+json` too. https://github.com/snarfed/granary/blob/master/api.py#L77
#
aaronpk
ah great
#
[snarfed]
(s/uses/emits/)
aaronc joined the channel
#
GWG
My code consumes mf2+json as well
#
GWG
And jf2+json and jf2feed+json
#
jamietanna[m]
So I've updated it to `application/mf2+json` and that still doesn't seem to work 😞
#
aaronpk
yeah xray still needs updates
#
aaronpk
it's just not looking for mf2 json in that feeds API at all
#
jamietanna[m]
So I guess instead of re-parsing the MF2 JSON (as MF2), we'd parse it as JSON, then check it's a feed, and if so add the feed URL to the list of feeds?
#
aaronpk
yeah so similar to how that line I linked looks for some jsonfeed properties in the json, you'd do the same but looking for some signs of mf2 json
#
jamietanna[m]
Awesome, will do!
#
aaronpk
so like ... `elseif(strpos($contentType, 'application/mf2+json') !== false ...`
#
aaronpk
then some `isset($feeddata['items'][0]['type'][0]) && $feeddata['items'][0]['type'][0] == 'h-feed'` or roughly so
#
aaronpk
did you know that if you click on an ics link on iOS a little preview of the list of events pops up??
[Rose] and aaronc joined the channel
#
jamietanna[m]
!tell aaronpk: I've raised https://github.com/aaronpk/XRay/pull/94 with a fix 👍️ let me know if there's anything you're not happy with on it as I've not written PHP in quite some time!
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[jamietanna] #94 Add support for parsing MF2 JSON
#
aaronpk
wow cool thanks, will take a look in a bit
aaronc, j605, [fluffy], dysbulicDiscord[, [schmarty], [jgmac1106], jgmac1106, chrisaldrich and [Sadik_Shahadu] joined the channel
#
@pwcc
↩️ I need to rip it out of my site's repo but I have this if you want to start posting to Twitter via your site. It's pretty simple, doesn't deal with replies, webmentions or any of that at the moment https://github.com/peterwilsoncc/doitlive.peterwilson.cc/tree/master/mu-plugins/pwcc-notes
(twitter.com/_/status/1207777734392287232)
jgmac1106 and [tantek] joined the channel