#dev 2017-01-27

2017-01-27 UTC
GWG joined the channel
#
loqi.me
edited /page (+20) "tantek added "[[Facebook Page]]" to "See Also""
(view diff)
KevinMarks joined the channel
#
loqi.me
created /Faceversary (+154) "prompted by tantek and dfn added by tantek"
(view diff)
#
KartikPrabhu
what is faceversary?!
#
Loqi
Faceversary is what Facebook calls their siloversary, that is, an anniversary of the date someone joined Facebook https://indieweb.org/Faceversary
#
KartikPrabhu
marketing jargon!!
#
KartikPrabhu
what is indieversary?
#
Loqi
It looks like we don't have a page for "indieversary" yet. Would you like to create it?
#
loqi.me
created /siloversary (+206) "prompted by tantek and dfn added by tantek"
(view diff)
#
tantek
what is a blogiversary?
#
Loqi
It looks like we don't have a page for "blogiversary" yet. Would you like to create it?
KevinMarks_ and mblaney joined the channel
#
aaronparecki.com
edited /p3k-v1 (+221) "/* Screenshots */ move screenshot from /create"
(view diff)
#
aaronparecki.com
edited /create (-294) "remove old p3k screenshot and link to p3k-v1 instead"
(view diff)
#
loqi.me
created /safe_replies (+143) "prompted by aaronpk and dfn added by KevinMarks_"
(view diff)
#
loqi.me
edited /safe_replies (+73) "/* See Also */ new section"
(view diff)
#
loqi.me
edited /safe_replies (+111) "KevinMarks_ added "https://www.kickstarter.com/projects/manton/indie-microblogging-owning-your-short-form-writing/posts/1785295" to "See Also""
(view diff)
#
loqi.me
edited /safe_replies (+12) "KevinMarks_ added "[[vouch]]" to "See Also""
(view diff)
tantek joined the channel
#
david.shanske.com
edited /Semantic_Linkbacks (+33) "/* Semantic Comments */"
(view diff)
KevinMarks, tantek and KevinMarks_ joined the channel
#
@Iggy
Webmention is a simple way to notify any URL when you mention it on your site https://webmention.net/draft/#abstract-p-1
(twitter.com/_/status/824880779670937600)
tantek, KevinMarks_ and KevinMarks joined the channel
#
jeremycherfas.net
edited /IRC (+125) "Fixed a link to IRC help. --~~~~"
(view diff)
plindner joined the channel
#
jeremycherfas.net
edited /IRC_People (+33) "/* Nicknames */"
(view diff)
prtksxna, mindB and martymcguire[m] joined the channel
#
jeremycherfas.net
created /Template:jeremycherfas (+169) "Made me a sparkline."
(view diff)
KartikPrabhu, KevinMarks and gRegorLove joined the channel
#
aaronpk
oh no jonnybarnes i broke your site!
#
aaronpk
it was fine until it tried to show my webmention
#
aaronpk
my webmention included emoji so check that :)
#
jonnybarnes
its not that: ErrorException: array_key_exists() expects parameter 2 to be array, string given in /home/jonny/websites/jonnybarnes.uk/vendor/jonnybarnes/webmentions-parser/src/Authorship.php:172
#
aaronpk
aha. i tend to break authorship parsing since i fall under one of the edge cases
#
voxpelli
aaronpk: are your edge case part of https://github.com/voxpelli/node-webmention-testpinger ? If not, then adding it there would make it easy for jonnybarnes to debug things :)
#
aaronpk
not sure!
#
aaronpk
looks like that one has my old site layout
#
voxpelli
yeah, was a while since I added the snapshots there, so they could use an updating – when updated they will automatically become part of my endpoints test suite
#
KevinMarks
I had that same problem with Aaron's u-author in my recipe code
tantek joined the channel
#
voxpelli
should get around to updating the testpinger then, but PR:a are appreciated, especially as it feels better to have an ok on pulling in copies of people's sites
KartikPrabhu joined the channel
#
aaronpk
are http Link headers allowed to be relative?
#
aaronpk
er, path-relative. i'm not sure what the word is for that
#
aaronpk
like `GET /some/page` returns `Link: <foo>` which means it resolves to /some/foo
#
@jbjohansson
@aaronpk @ChrisAldrich Yay! Just got this far from scratch. Not too difficult at all; just a matter of reading spec. https://webmention.rocks/test/4
(twitter.com/_/status/825038814175326208)
#
tantek
aaronpk pretty sure my library answers that question :)
#
tantek
(my Webmention endpoint detection library that checks LINK headers for endpoints)
#
tantek
I read the spec at the time, coded it up, then promptly flushed that memory, having incorporated the relevant information into code
#
aaronpk
i will be curious to see if that library works with this test
#
tantek
hoping I cited the spec in the code
#
tantek
that sounds right
#
tantek
yes. note the $url param and the call to get_absolute_url
#
tantek
er uri
#
aaronpk
the real question is which URL that library passes to get_absolute_url
#
aaronpk
we'll see soon
#
tantek
whichever you pass into the function
#
tantek
which better be the absolute URL that you (the client) used to retrieve $h (the headers you're passing in to be parsed)
#
tantek
100% caller responsibility to pass in the right URL
#
tantek
why? that $url is also from an input param, again, caller responsibility
#
aaronpk
if that URL is a redirect, and if curl follows the redirect, then you need to update the value of $url to be the final URL that the page was fetched in order for the relative URL resolution to work
#
tantek
nope, curl is not following redirects, see comment above
#
aaronpk
well then you'll just be unable to send webmentions to a page that happens to be a redirect
#
tantek
the CURLOPT_FOLLOWLOCATION option was causing some bizarro PHP failure so I cut it
#
tantek
no that's the caller responsibility to handle the redirect first
#
aaronpk
for example if someone changes their URLs and you try to re-send a webmention to something you linked to before
#
tantek
possibly. or that someone could also return the webmention endpoint as part of the headers of their redirect
#
tantek
hmm - getting annoyed at having to update my hotlinked IG images when they keep moving their CDN from cdininstagram.com to fbcdn.net and back
#
aaronpk
#ownyourphotos
#
tantek
more like #ownyourjpegs but yeah
#
tantek
I mean the /photo posts are on my site :)
#
tantek
the permalinks - the important thing that people link to
#
aaronpk
you hope
#
aaronpk
i'm sure instagram said the same thing
#
aaronpk
"it's fine to move the jpgs because people always link to the instagram.com urls"
#
tantek
oh hah. yeah
#
Loqi
[Jonny Barnes] How about an Apple Watch?
#
aaronpk
yay with emoji and everything!
#
Loqi
giggles
#
jonnybarnes
my authorship parser gets to a point where it assumes the author value found is a URL, i.e. a string
#
jonnybarnes
where is actually isn’t, its an array with one entry thats a string
#
aaronpk
those sneaky arrays
#
jonnybarnes
so flattening that to a string and everything worked again
#
tantek
aaronpk how come your reply doesn't POSSE tweet thread?
#
aaronpk
oh i just didn't syndicate that one to twitter because i didn't realize jonnybarnes had
#
aaronpk
i saw his webmention and i had already replied before i saw the tweet
#
tantek
with original permalink and everything!
#
aaronpk
my workflow is getting too fast
#
tantek
ah! your backend should determine that for you automatically!
#
aaronpk
there's still a few missing pieces in order to do that properly
#
tantek
by noticing that on his original https://jonnybarnes.uk/notes/DQ he has a u-syndication link to a tweet permalink
#
Loqi
[Jonny Barnes] How about an Apple Watch?
#
tantek
and then automatically POSSE a tweet @-reply to that
#
tantek
seems like you're close
#
aaronpk
i put his original URL into the "reply" field in quill, so quill would need to look for the syndication URL. the trick is then matching it with one of my syndicate-to options, which don't have any machine-parsable information about which service/account they are for
#
tantek
should quill do that or should p3k do it?
#
tantek
shouldn't be dependent on all micropub clients having to support it IMO
#
jonnybarnes
well quill should tell p3k what syndicating aaron wants to happen?
#
aaronpk
i want it in my UI in order to be able to selectively turn it off
#
aaronpk
because i don't *always* want to POSSE replies
#
aaronpk
which is why there are syndication buttons in quill in the first place
#
tantek
on / POSSE tweet @-reply to POSSE tweet / off
#
aaronpk
but now you've hard-coded twitter into micropub?
#
tantek
no it's per syndicate-to destination
#
jonnybarnes
on / POSSE to in-reply-to syndicated version / off?
#
tantek
on / POSSE reply to POSSE original / off
#
tantek
jonnybarnes++ yes. also well done with your site update!
#
Loqi
jonnybarnes has 1 karma in this channel (11 overall)
#
jonnybarnes
why does tantek always choose the better phrasing?
#
aaronpk
jonnybarnes: one more thing, your home page h-card needs a u-url set to your home page! right now it looks like your primary URL is your facebook page
#
tantek
luck. practice. experience. pick 2 ;)
#
tantek
aaronpk hey are you able to POSSE after the fact and thread it that way?
#
jonnybarnes
does the u-url need to come before the facebook url, or will anywhere in the h-card do aaronpk?
#
aaronpk
IMO it should be the first one in the list for consumers who only look at one URL.
#
aaronpk
tantek: looks like i'm not storing the syndication URL when I store my reply context, and I definitely don't have code that checks whether the thing i'm replying to is an original post with a syndication URL that might match twitter.com. i'd have to add that for it to work
#
tantek
aaronpk: the way I've been designing storage of such things in Falcon is literally as stepping stones toward /reader functionality
#
tantek
reply-context cache -> entire item cache -> entire feed cache
#
tantek
where reply-context cache will be incrementally used by my reply display code
#
tantek
and entire item cache will be incrementally used by my comments display code
#
tantek
and then entire feed cache will be used by my reader display code
#
tantek
including all syndication urls of items in order to enable simpler responses with POSSE copies to wherever the originals were syndicated to
#
tantek
it's all part of the "where do I cache stuff not from me" storage problem
#
tantek
with multiple incremental clients in my code
#
aaronpk
alright tantek there you go: https://webmention.rocks/test/23
#
Loqi
[Webmention Rocks!] Discovery Test #23
snarfed joined the channel
#
loqi.me
created /Leaf (+332) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
edited /Leaf (+32) "/* See Also */ new section"
(view diff)
#
loqi.me
edited /exercise (+11) "tantek added "[[Leaf]]" to "See Also""
(view diff)
#
loqi.me
edited /exercise (+13) "tantek added "[[Suunto]]" to "See Also""
(view diff)
#
gregorlove.com
edited /withings (+27) "capitalize, link"
(view diff)
#
gregorlove.com
moved /withings to /Withings "canonical capitalization"
#
jonnybarnes
aaronpk: my h-card should be better now
#
Loqi
does a happy dance!
#
jonnybarnes
wow, didn’t we go from mp-syndicate-to -> syndicate-to? and now its mp-syndicate-to again??
#
tantek
what is syndicate-to?
#
jonnybarnes
but the spec now says to use mp-syndicate-to
#
aaronpk
i don't think it ever switched *back*, it just started as syndicate-to and then we realized it made more sense as a command rather than as part of the post (e.g. there is no syndicate-to property of h-entry)
#
tantek
it's more involved than just setting the "syndication" property, in particular
#
tantek
(which could have been another alternative)
#
tantek
(you can't set the property because you don't know the precise syndication permalink URL)
#
aaronpk
well that's still possible. in fact some of my scripts set the syndication property after they do the syndication work
#
tantek
(you the client can only convey a preference from the user *to* syndicate to a silo destination, after which the side-effect is that the syndication property is set to a syndication permalink)
#
tantek
sure, that's different
#
aaronpk
yeah that's just updating a property that happens to be named "syndication"
miklb joined the channel
#
martymcgui.re
edited /events/2017-02-08-homebrew-website-club (-52) "/* Where */ add Baltimore"
(view diff)
#
sebsel
aaronpk re: webmention tests, I still think the last one should add the /page here in these lists: https://seblog.nl/temp/media-endpoint/2ff895-webmentions-tests.jpg :)
#
sebsel
because those are the lists you copy+paste
#
aaronpk
oh *that* list
#
aaronpk
hm yeah
#
sebsel
yeah, pictures say more then words.
tantek joined the channel
#
martymcgui.re
edited /events/2017-02-08-homebrew-website-club (-24) "/* RSVP */ add Baltimore indieweb and FB RSVP"
(view diff)
tantek, KevinMarks_ and KevinMarks joined the channel
#
tantek
^^ screenshot of the wiki?
KevinMarks and tantek joined the channel