#dev 2018-03-08

2018-03-08 UTC
#
tantek
!tell chrisaldrich re: http://boffosocko.com/2018/03/03/enabling-two-way-communication-with-wordpress-and-github-for-issues/ do you have any Issues that you've POSSEd which have gotten comments on GitHub and demonstrate the backfeeding?
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[Chris Aldrich] Enabling two way communication with WordPress and GitHub for Issues
KartikPrabhu, tantek and ben_thatmustbeme joined the channel
#
Loqi
Homebrew Website Club SF!
#
aaronpk
hm, jf2 defines a content type for jf2feed but not just jf2?
KartikPrabhu and snarfed joined the channel
#
@Dries
@swentel @EddieHinkle I’m falling behind – too many other things going on. Hope to look into Webmention next.
(twitter.com/_/status/971578624536203264)
#
aaronpk
i'm beginning to think I need to completely rethink how webmention.io works
#
GWG
Oh?
#
aaronpk
turns out all the experience building aperture and XRay has taught me a lot compared to how I started with webmention.io
#
GWG
What is the issue with it?
#
Loqi
It looks like we don't have a page for "issue with it" yet. Would you like to create it? (Or just say "issue with it is ____", a sentence describing the term)
#
aaronpk
it's just doing a lot of munging of data that it doesn't need to if it were to just store the XRay jf2 directly
renem joined the channel
#
GWG
Would doing that be a big deal?
#
aaronpk
unfortunately yes
#
aaronpk
so I need to think through this before I do anything drastic
#
@nitishchpr
swentel EddieHinkle I’m falling behind – too many other things going on. Hope to look into Webmention next.
(twitter.com/_/status/971581565955461120)
snarfed and eli_oat joined the channel
#
aaronpk
whoops tantek the name on your event on your home page is a mess, i'm guessing implied p-name? it's fine on your event permalink
[tantek] joined the channel
#
[tantek]
Weird I’ll take a look
tantek joined the channel
#
aaronpk
following all these indieweb feeds is making these markup issues super obvious now
snarfed joined the channel
#
tantek
even when the data is visible, consuming it and presenting it in a different way can reveal issues!
tantek and AngeloGladding joined the channel
#
tantek
aaronpk: if you're still around I think I have a fix for the p-name problem you found
#
tantek
seems to work locally
#
tantek
alright, deployed
#
tantek
!tell aaronpk try tantek.com h-feed again, p-name issue(s) should be fixed. e-content too.
#
Loqi
Ok, I'll tell them that when I see them next
barpthewire, wladz, loicm_, cweiske and gRegorLove_ joined the channel
#
tantek
ah it looks like Bridgy Publish does not support RSVPing to multi-session events like https://www.facebook.com/events/2019666581591532/
#
tantek
now going to try a multi-rsvp with Bridgy Publish
#
tantek
just tried manually first in the bridgy/facebook web UI
#
tantek
and got error: "Error from Facebook API or your site: {"error":{"message":"(#100) User must be able to RSVP to the event.","type":"OAuthException","code":100,"fbtrace_id":"CpvibG9EmhI"}} HTTP Error 400: Bad Request"
#
tantek
looks like Bridgy will only RSVP to the *first* FB event listed in a multi-RSVP post
tantek joined the channel
#
@ravisagar
@HongPong @ChrisAldrich @mlncn @Dries @swentel Hi @HongPong I was actually able to configure #linkback module after following your tips with composer. It worked really well. Loving it so far and will keep on testing it for #Webmention #posse #Indieweb https://pbs.twimg.com/media/DXwJuJFXUAAapgK.jpg
(twitter.com/_/status/971662684696514561)
jeremycherfas, wladz, deathrow1 and leg joined the channel
#
aaronpk
good morning
#
Loqi
aaronpk: tantek left you a message 7 hours, 14 minutes ago: try tantek.com h-feed again, p-name issue(s) should be fixed. e-content too.
#
Loqi
morning!
#
aaronpk
yay that does look better in the parser. now to wait for a new event to see if it shows up right in the reader
#
Loqi
😃
#
@glueckpress
Wanted to enable Webmentions on my site forever, finally did it. Next: Publish something. https://wordpress.org/plugins/webmention/
(twitter.com/_/status/971748476131430401)
singpolyma, snarfed and [tantek] joined the channel
#
[tantek]
Aaronpk perhaps I should post the next hwc SF event then
[chrisaldrich], chrisaldrich, AngeloGladding, [pfefferle], tantek and [miklb] joined the channel
#
aaronpk
[eddie] aw you have a nice map and everything but no checkin markup on your checkins!
#
tantek.com
edited /want (+309) "/* IndieWeb Examples */ add an example to get things started"
(view diff)
#
tantek.com
edited /want (-18) "drop fingers-crossed emojicon because it means either an out-of-control want, or possibly sign of deception (behind ones back), neither of which represent the "actionable want" that this post type is about"
(view diff)
snarfed and [cleverdevil] joined the channel
#
[cleverdevil]
So, in the micropub spec, it requires a server to implement `x-www-form-urlencoded` and JSON for passing in data.
#
[cleverdevil]
But, I am not clear what the full expectation for support is on the x-www-form-urlencoded side.
#
[cleverdevil]
Is it just for h-entry?
#
aaronpk
at the very least simple h-entrys
#
aaronpk
but technically it should support the non-nested version of anything it supports in json too
#
aaronpk
really it's there so that clients posting simple content can avoid having to use the nested json format and still expect to work with all servers, so most of the time that's going to just be h-entry
#
[cleverdevil]
Let's say I was converting anything passed in as form data to the equivalent JSON before processing it.
#
aaronpk
that's what I do
#
[cleverdevil]
I assume I could just accept literally any parameter passed in and nest it under "properties"
#
aaronpk
except "h" and "access_tokeN"
#
[cleverdevil]
:thumbsup: q
#
[cleverdevil]
I am thinking of creating a very, very simple and compliant micropub server that essentially just stores every piece of published content either on disk or in an S3 bucket.
#
[cleverdevil]
No frontend at all.
#
aaronpk
then do all the rendering after reading the files?
#
[cleverdevil]
Yeah, that'd be a separate project.
#
[cleverdevil]
Something that you could point at a bucket or location on disk,
#
aaronpk
sounds like a totally reasonable approach
KartikPrabhu joined the channel
#
[cleverdevil]
I am going to be on Known for the forseeable future, but I like the idea of eventually migrating to something much simpler.
#
aaronpk
I would recommend doing microformats json syntax validation before you store anything so that when you're reading it back you can be sure it's already valid mf2 json
#
aaronpk
so for example, you'd reject a JSON request that looked like {"type":["h-entry"],{"properties":{"foo":"bar"}} since the value of "foo" is not an array and that's invalid mf2 json
#
dgold
[cleverdevil]: zegnat's sink does that
#
[cleverdevil]
Is it open source?
#
dgold
that i do not know
[tantek] and snarfed joined the channel
#
dgold
but it just stores the incoming micropub data
snarfed joined the channel
#
[cleverdevil]
[aaronpk] my plan is to store everything as validated MF2 JSON.
#
[cleverdevil]
Is there a JSON Schema out there for MF2 JSON?
#
[cleverdevil]
That would be *awesome*.
#
aaronpk
interesting
#
aaronpk
wat, the examples of json schemas are microformats1 vocabularies in json
#
aaronpk
does jsonschema work without specifying property names?
[chrisaldrich] joined the channel
#
[cleverdevil]
I've designed JSON Schemas before using jsl, which is a Python project that makes it relatively easy to do.
#
aaronpk
the examples look more strict than mf2 json is
snarfed joined the channel
#
[cleverdevil]
You can allow "additional properites" which are basically not checked against the schema.
#
[cleverdevil]
*properties
#
aaronpk
can you limit the charset of those property names?
#
aaronpk
and restrict the value types?
#
[cleverdevil]
Good question.
#
[cleverdevil]
Not sure! I'm definitely not a JSON Schema expert yet.
#
aaronpk
this goes from super simple examples to getting dropped in the spec, so i'm a bit lost
#
[cleverdevil]
Yeah, totally fair.
#
aaronpk
also there is no limit to the depth of nesting in mf2 json which doesn't look like a thing you can do here?
#
[cleverdevil]
I think the way to do it would be to define little schemas for each mf2 type.
#
aaronpk
there aren't "types" tho
#
[cleverdevil]
Well... there *sort of* are.
#
aaronpk
not in the syntax
#
aaronpk
the only limit is the valid characters after the h-
#
[cleverdevil]
Sure, but in practice, its not really unlimited.
#
aaronpk
depends on whether you're talking about syntax or vocabulary
#
[cleverdevil]
People are only doing a subset of what is possible.
#
aaronpk
if you want to limit the vocabulary then I would recommend going further and really clamping down on what's allowed, which is essentially what i've done with XRay/Aperture/Microsub
#
aaronpk
in practice, there is never more than one published date of an h-entry for example, although the mf2 h-entry spec allows it
#
[cleverdevil]
Honestly, I'd really like to see this codified in an official way.
#
aaronpk
but almost all publishers and consumers expect there to be just one. so in XRay i've converted it to a string value
#
[cleverdevil]
In a *machine-readable* official way.
#
[cleverdevil]
Not just prose in a spec.
#
[cleverdevil]
Having the "official" JSON Schema would make implementors lives a ton easier.
#
aaronpk
heh, it's hard enough to get the parsing algorithm codified in a machine-readable way, i'm not sure that I believe that
[miklb] joined the channel
#
aaronpk
the microformats json syntax is pretty well-established and hasn't changed and likely won't change again
#
aaronpk
the vocabularies change more often as new properties are added
snarfed, [asuh], chrisaldrich, KartikPrabhu and [pfefferle] joined the channel
#
sknebel
aaronpk: action=preview is a POST request?
#
aaronpk
yes because it will likely cause the server to make an external request which may have side effects
#
sknebel
assumed so
#
sknebel
and the url is probably a "url" parameter?
#
www.svenknebel.de
edited /Microsub-spec (+42) "/* Preview */ POST, url-param"
(view diff)
#
aaronpk
I don't understand the question
#
aaronpk
oh I see, it wasn't written down :)
#
Loqi
[gRegor Morrill] Want to read: A Wind in the Door
[kevinmarks] joined the channel
#
@Inkwater_Masha
Too Scared To Write? The One-Two Punch Approach That Finally Got Me Writing http://ow.ly/S4BO30iFGdp #writetip #amwriting #indieauth
(twitter.com/_/status/971827933445869569)
[eddie] joined the channel
#
[eddie]
aaronpk: I’m not sure why I never marked up my checkins. I’ll have to do that 😁
#
aaronpk
excellent. then you'll also have an excuse to make them look pretty in Indigenous
#
snarfed
!tell tantek facebook multi session events, interesting! new to me.
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[tantek] ah it looks like Bridgy Publish does not support RSVPing to multi-session events like https://www.facebook.com/events/2019666581591532/
chrisaldrich joined the channel
#
sknebel
aaronpk: Oauth question, do refresh_tokens typically expire?
#
aaronpk
usually not, but totally depends on the service
#
sknebel
k, will assume no until it explodes in my face then ;)
loicm_ and [tantek] joined the channel
#
[tantek]
Gregorlove “want to read” or any “want to” is a /want post. /read /watch is for when you’ve done it, whether the whole thing or competed some number of pages / chapters / minutes / episodes etc
#
Loqi
[tantek]: snarfed left you a message 19 minutes ago: facebook multi session events, interesting! new to me.
#
[tantek]
So add yourself to /want examples :)
#
[tantek]
Snarfed, so WDYT of Bridgy support of multi-rsvp? So I can post one rsvp post for multiple sessions instead of having to post one rsvp per session
leg joined the channel
#
gregorlove.com
edited /want (+550) "/* IndieWeb Examples */ +me"
(view diff)
#
snarfed
[tantek]: API support isn't really documented, so i need to go learn more...but it looks like the API only allows RSVPing to individual sessions, not the whole thing
#
www.boffosocko.com
edited /game_play (+23) "category:PostType"
(view diff)
#
sknebel
aaronpk: could we have Loqi urlescape the spaces? ^^^ (not sure where to file Loqi-bugs :D)
#
aaronpk
whoops
#
aaronpk
should actually be an underscore. thanks mediawiki.
#
gRegorLove
what is game play?
#
Loqi
A game play is a passive type of post used to publish a game (digital or otherwise) that you have played https://indieweb.org/game_play
#
gRegorLove
what is play?
#
Loqi
It looks like we don't have a page for "play" yet. Would you like to create it? (Or just say "play is ____", a sentence describing the term)
#
gRegorLove
what is passive?
#
Loqi
A passive post is a post that is created without the person taking an explicit action to create the post, such as listening to music that happens to be playing or watching a show that starts playing by itself, like YouTube's autoplay https://indieweb.org/passive
#
gRegorLove
passive << game play
#
Loqi
ok, I added "[[game play]]" to the "See Also" section of /passive_post
#
www.boffosocko.com
created /Plurk (+981) "stub page; post types, UI example"
(view diff)
#
www.boffosocko.com
edited /want (+371) "Huffduffer"
(view diff)
snarfed joined the channel
#
sknebel
that logo is... interesting
#
Loqi
ok, I added "[[Steam]] has an API that could be used as well: https://developer.valvesoftware.com/wiki/Steam_Web_API#GetRecentlyPlayedGames_.28v0001.29" to the "See Also" section of /game_play
#
www.boffosocko.com
edited /want (+320) "Plurk example"
(view diff)
jackjamieson joined the channel
#
aaronpk
yesssssss my multi-account micropub stuff is working
snarfed and [manton] joined the channel
#
[manton]
[aaronpk] Following up on the IndieAuth issue... Did the authorization endpoint used to return the "me" parameter? The code checking that in Sunlit should be identical to what I do in Micro.blog iOS, and I haven't heard any problems about it.
#
aaronpk
hmm i'm pretty sure i've signed in to micro.blog recently, let me check again
#
aaronpk
an early version of the spec had the "me" parameter returned at the callback URL, so Known implemented it that way, but the client can't safely rely on it at that point so we took it out
#
[manton]
Okay. My code must be leftover from that. And maybe most implementations still send "me" back.
#
[manton]
It's a simple change, but want to make sure I understand it.
#
aaronpk
ah yeah, can't log in to micro.blog ios app either now
#
aaronpk
the reason the client can't safely use the "me" at that point is because anyone could craft a URL like https://micro.blog/callback?code=xxxx&me=https://manton.org
#
aaronpk
the client already needs to maintain the "state" parameter between requests, so it should also remember the "me" between requests as well
#
[manton]
Got it.
snarfed joined the channel
#
[manton]
Do you want to try a TestFlight build with this change?
#
[manton]
Thanks, I'll send it out in a few minutes.
#
www.boffosocko.com
edited /podcast (+551) "/* Other Examples */ faux-cast of /listen posts"
(view diff)
#
snarfed
ok all, how do we represent a recurring or mulit-instance event like the FB event ^ in mf2 h-event? http://microformats.org/wiki/h-event
#
Loqi
[Tantek Çelik] h-event is a simple, open format for events on the web. h-event is often used with both event listings and individual event pages. h-event is one of several open microformat draft standards suitable for embedding data in HTML. h-event is the microfo...
#
aaronpk
h-event with child h-events?
deathrow1 joined the channel
#
snarfed
maybe?
#
snarfed
man i really want bridgy to follow and not lead
#
Loqi
aaronpk: lol
#
snarfed
fortunately i don't have to emit h-event. just figuring out internals. still thuogh
KartikPrabhu joined the channel
#
aaronparecki.com
edited /Micropub-extensions (+378) "/* Server Commands */ add implementations of mp-destination"
(view diff)
#
aaronpk
[manton] you may be interested in this! I just implemented mp-destination myself! https://aaronparecki.com/2018/03/08/13/monocle-account-switcher
#
Loqi
[Aaron Parecki] Monocle just got real fancy. I can now set a default account for each channel from which responses should be sent. (Stored in my Microsub server, not in Monocle, so it can work across clients). Monocle recognizes when alternate accounts are available... https://aaronparecki.com/2018/03/08/13/monocle-account-chooser.png
#
[kevinmarks]
We tried recurring events with mf1 and decided they were too hard iirc - timezones drive you mad
[kevinmarks] joined the channel
#
Loqi
hCalendar Brainstorming
[eddie] joined the channel
#
[eddie]
!tell aaronpk: I have actually added tentative support for checkin display to Indigenous, but I definitely still need to do more improvements when I get the chance
#
Loqi
Ok, I'll tell them that when I see them next