#dev 2017-10-02

2017-10-02 UTC
davidmead, eli_oat, snarfed, tantek, renem, loicm, amz3`, j12t, rMdes_ and [keithjgrant] joined the channel
#
[keithjgrant]
Is there any documentation on IndieAuth tokens expiring?
#
[keithjgrant]
Right now, Omnibear stays logged in indefinitely, but I'm wondering if I should be checking for expired tokens & requiring re-auth at some point
John__, loicm and j12t joined the channel
#
schmarty
Maybe in oauth spec. I think it is left to the implementation, though.
#
sebsel
I think you just have to check for an eventual 401 or 403 HTTP status code and then prompt to re-authenticate?
#
ben_thatmustbeme
whew, long vacation
#
ben_thatmustbeme
need to get myself back in to the groove
#
ben_thatmustbeme
but loqi, messages?
#
ben_thatmustbeme
!tell snarfed, i remember some of the mastodon work, why, whats up?
#
Loqi
Ok, I'll tell them that when I see them next
eli_oat joined the channel
#
petermolnar
Loqi, can I has long vacation?
singpolyma, tantek and loicm joined the channel
#
ben_thatmustbeme
Loqi broken?
#
petermolnar
what is POSSE?
#
Loqi
POSSE is an abbreviation for Publish (on your) Own Site, Syndicate Elsewhere, a content publishing model that starts with posting content on your own domain first, then syndicating out copies to 3rd party services with permashortlinks back to the original on your site https://indieweb.org/POSSE
#
petermolnar
half-broken, maybe
#
ben_thatmustbeme
Loqi join/parted repeatedly on w3c #social
j12t joined the channel
#
sknebel
expired tokens is a good key word, maybe that's why Kaja failed to edit the wiki yesterday
John__ joined the channel
#
aaronpk
yeah it's totally up to the server that issues tokens whether they should expire or not
#
aaronpk
then there's the whole refresh token part of OAuth which afaik no indieweb servers have implemented
#
dgold
i've been trying to get CRUD operations working with my micropub endpoint
#
dgold
however, I'm banging my head against the fact that Hugo only keeps the frontmatter in json
#
dgold
ie - front matter is a json array, but the actual _content_ is not in an array
#
sknebel
dgold: thats how my store works as well
#
aaronpk
that sounds like how jekyll stores things as well, which is also how my site works
#
dgold
is it possible to read that part of a file that isn't in an array into an array in php?
#
aaronpk
to load my files into memory I first load the file into a string then split on the separator between the front matter and content. everything in the front matter is then parsable using yaml_parse
#
dgold
okay - so i guess I need to split the string on the \n\n\n...preg_split appears to be in my future
#
aaronpk
if that's how the front matter is separated then yeah
#
aaronpk
possibly a faster way than preg_split is to iterate line by line until you encounter three \n in a row
#
dgold
thanks for those ideas, aaronpk, i'll keep working at it. If I can get it to retrieve the content, I'll be most of the way there
snarfed, j12t, amz3` and loicm joined the channel
#
loqi.me
created /kaja_test (+104) "prompted by sknebel and dfn added by sknebel"
(view diff)
#
kaja.sknebel.net
edited /kaja_test (+1) "linkify ('… is <url>' pattern)"
(view diff)
#
www.svenknebel.de
deleted /kaja_test "Author request: debugging entry"
Kaja joined the channel
#
sknebel
aaronpk: how does Loqi prevent getting renamed to Loqi_ on reconnects? or did I just never notice it?
#
aaronpk
if Loqi disconnects himself then there's no nick conflict. sometimes the connection times out though and he does end up being Loqi_ for a while
#
aaronpk
until i notice it and tell him to fix his nick
#
aaronpk
i should probably make that happen automatically
tantek joined the channel
#
sknebel
I wonder if using SASL prevents it from happening at all, then that'd be an elegant workaround
#
sknebel
otherwise just check and reset regularly
clintpatty joined the channel
#
sknebel
aaronpk also, wanted to make sure you saw this yesterday: https://chat.indieweb.org/dev/2017-10-01/1506890609388000
#
Loqi
[sknebel] aaronpk: re follow buttons, there was this (for login, but same principle should work) with iframes: http://indieweb.org/2016/Brighton/Demos#Sebastian_Lasse sebastian said there the site can not detect your identity (thanks to the iframe isolating it
#
aaronpk
yeah i'll have to try that out
#
snarfed
ben_thatmustbeme: re mastodon, i'm working on https://fed.brid.gy/ (pls ignore the temporary ugly design :P)
#
Loqi
snarfed: ben_thatmustbeme left you a message 3 hours, 41 minutes ago: remember some of the mastodon work, why, whats up?
#
snarfed
the current markup in mastodon works well for backfeeding replies, but doesn't have permalinks for likes or boosts (reposts), so i'm thinking about what to do for them. any thoughts?
#
snarfed
worst case, i can store the activitypub pings and render likes and boosts myself, on fed.brid.gy, like bridgy does for silos...but i'd obviously rather use mastodon itself if possible
#
ben_thatmustbeme
i don't think they have permalinks sadly.
#
ben_thatmustbeme
your best bet may be to join the w3c social chat, Gargron is on there often enough
#
snarfed
thanks! i also harass them on #mastodon occasionally
#
www.svenknebel.de
edited /Glitch (+33) "was hyperdev bevore it was gomix"
(view diff)
#
www.svenknebel.de
edited /HyperDev (-116) "now called Glitch"
(view diff)
clintpatty joined the channel
#
www.svenknebel.de
edited /Glitch (+134) "indieweb example: sturdy-backbone"
(view diff)
#
ben_thatmustbeme
snarfed, may be better to follow on #social though. it could possibly work with pump.io and others then as well, plus it would help keep you up to date on activitypub as they change it
#
ben_thatmustbeme
plus would make a strong case for those others to actually add mf2 to their code as well then
#
snarfed
understood! limited time/bandwidth though, so i don't do IRC for much, including this. definitely want to follow but i just don't have that much capacity :P
#
ben_thatmustbeme
understandable
snarfed and [grantcodes] joined the channel
#
[grantcodes]
Photo album micropub client updated! It's pretty solid now. Plus it is the pinnacle of design.
snarfed and [kpraslowicz] joined the channel
#
grant.codes
edited /Micropub/Clients (+485) "Add photo.postrchild.com"
(view diff)
#
sknebel
[grantcodes]++
#
Loqi
grantcodes has 1 karma in this channel (3 overall)
[miklb] joined the channel
#
[miklb]
grantcodes needs Papyrus
#
[grantcodes]
miklb I'm just more of a comic sans sort of person
#
[miklb]
lol, only made joke in wake of SNL skit
j12t joined the channel
#
[kpraslowicz]
Best of both worlds: https://creativemarket.com/benharman/229510-Comic
#
keithjgrant.com
edited /Micropub/Clients (+48) "/* Omnibear */"
(view diff)
#
keithjgrant.com
edited /Micropub/Clients (+16) "/* Quill */"
(view diff)
#
keithjgrant.com
edited /Micropub/Clients (+1) "/* Quill */"
(view diff)
#
keithjgrant.com
edited /Micropub/Clients (+17) "/* tt-rss-micropub */"
(view diff)
#
aaronparecki.com
edited /hwcpdx (+429) "add POSSE links to summary"
(view diff)
KartikPrabhu and [chrisaldrich] joined the channel
#
aaronpk
snarfed: is it possible to redirect a subset of the .well-known folder to fed.brid.gy instead of the whole thing?
#
snarfed
aaronpk: sure! i can definitely add those details. the front page instructions are pretty rough and incomplete right now.
#
snarfed
also i gave up on the idea of wrapping mastodon etc urls to inject bridgy fed's wm endpoint, e.g. fed.brid.gy/wm/mastodon.social/...
#
snarfed
since i want the indie in-reply-to links to point to the mastodon page, not that proxy
#
snarfed
UX now is bridgy still, include an invisible link to fed.brid.gy, which sends a wm, and bridgy fed then extracts the in-reply-to link from source
#
snarfed
s/still/style/
#
aaronpk
ah funny
#
aaronpk
so basically i'll need to treat this as a syndication target
#
aaronpk
(same way I do for bridgy publish)
#
snarfed
probably
#
aaronpk
does it return a permalink in the webmention response?
#
snarfed
ideally you wouldn't have to, and the intermediate plumbing would figure out that a wm target is a fedsocnet and do the right thing
#
snarfed
i'm open to ideas
#
snarfed
not yet, no. mastodon doesn't give me one :/
#
snarfed
i can check the others though
#
aaronpk
the only other way i can think this would work is if fed.bridgy polled my site to find replies to attempt to deliver via activitypub
#
aaronpk
which is coincidentally also a feature request I've gotten for Telegraph sending webmentions
#
snarfed
yeah, or your site does the same
#
snarfed
tricky part is determining whether an arbitrary site is a fedsocnet that bridgy fed should handle
#
snarfed
fediverse, whee
#
snarfed
actually probably doable, just try a short list of known url fingerprints
#
aaronpk
it'd have to check for the activitypub endpoints and stuff right?
#
GWG
Hello, snarfed
#
snarfed
hi GWG! glad to hear you made progress on facepiles at iwc nyc. can't wait to try it!
#
snarfed
actually aaronpk if you use bridgy fed, there won't necessarily be a resulting permalink inside the fedsocnet at all, since this is federation, not syndication
#
Loqi
[Ryan Barrett] Working on connecting Mastodon with the #IndieWeb! https://fed.brid.gy/ https://snarfed.org/indieweb-ostatus-bridge
#
GWG
snarfed, pfefferle is looking now. I forgot to commit a file.
#
GWG
But hoping to get a new version out
#
aaronpk
oh right that makes sense
#
aaronpk
the way my code works now is it would leave that invisible fed.bridgy link in the post and would keep re-sending the webmention every time that post is updated.
#
snarfed
yeah, interesting. i'd probably need to remember everything i've seen to know whether to send Create or Update
#
snarfed
oh god i just noticed people have been filing issues on bridgy fed
#
snarfed
ugh users :P
druid-droid and dru1d-dr01d joined the channel