#barnabywaltersaaronpk: actually, easier, can you check what your cookies for waterpigs.co.uk are and send me the contents of indieauth_token if it exists?
#barnabywaltersthen I can decrypt it locally and take a look
#aaronpkso i'm thinking a successful create should actually return a "301" header instead of "201 Created"
#aaronpksince that way a browser posting directly to a micropub endpoint can be redirected to the post after it's created
#Jeenaoh neat, hehe bridgy works with my website and twitter, I just need to get the microformats data instead of the title which only says "Bridgy Response" ^^
#Jeenaso it takes "use the textContent of the .h-x for name" in my case I assume
#aaronpkI believe so. I'm not super familiar with that part of the code
lukebrooker joined the channel
#Jeenathis is awkward, I am thinking about just using twitters oembed to get the data I need instead of trying to get it from the microformats from bridgy, because either I am too dumb to use https://github.com/G5/microformats2 or it is just broken
#aaronpkhmm it is quite possible that gem is missing some things
#aaronpkI unfortunately can't help much with that, I've really only used the php one
#Jeenayeah no problem, I will att some issues to the issue tracker so they know somebody wants to use it ;)
nastika, snarfed, snarfed1, fmarier and CheckDavid joined the channel
#KartikPrabhuok so horribly stuck again. As per previous suggestion I moved auto-sending of webmentions from a post to a post_save hook. But it still seems that the target is unable to retrieve my source because it does not have a proper URL. The internet is too fast for my server?!! How are other folks doing auto-sending of mentions from post?
#snarfedugh, no fun. sounds like django still can't serve the post while you're in the post-save hook?
#KartikPrabhuI think post_save is supposed to be after saving to database, but it might be in some locked state! I might have to do some async things. sigh! thanks for the wordpress example link
#snarfedyou could try to send the webmention http requests async
#KartikPrabhuyeah. that is the direction I am leaning in... but first must take a break from staring at python code :P
#snarfedi've heard rumblings about people getting together in more places for homebrew website club. new york? london? reykjavik? feel free to add them to the wiki!
howardshippin, cweiske, snarfed and ireheart joined the channel
#KartikPrabhuok so unfortunately Django's post_save is not really post_save. My posts do not seem to have a URL until post_save finished executing. Tried with a 1min delay in post_save to autosend webmentions, but with no luck!
tilgovi and KartikPrabhu joined the channel
#KartikPrabhuaaronpk, tantek: do you auto-send webmentions on post publish? if so do you do it asynchronously?
#aaronpkKartikPrabhu: yes my webmentions are sent out asynchronously after the post is created
#KartikPrabhuaah alright. I might have to investigate that then. post_save hook did not work as expected :(
#KartikPrabhuyeah the docs do say post_save is activated after adding to database but it doesn't seem to be working. In any case async sending seems more robust
tantek, melvster and Jihaisse joined the channel
#tantekKartikPrabhu - I don't have auto-sending webmentions implemented yet.
#KartikPrabhui was just wondering how people have implemented it, since I am having quite the trouble
#tantekI've written some code for it, specifically for endpoint discovery
#cweiskethe only problem I have currently is that I receive pingbacks for the images I link in my blog posts :)
dvirsky joined the channel
#KartikPrabhuthanks. good things to explore on MLK day holiday
#bearKartikPrabhu - that would be a good thing for me to add - a small tool that monitors feeds for new outbound webmentions
#KartikPrabhui am sort of sceptical using ATOM or RSS feeds to do that, since those are supposed to be old technologies anyway. Maybe using a h-feed page would be good
#tantekKartikPrabhu - certainly if you're building the tool yourself for your own site, h-feed / h-entry publishing / parsing is the way to go.
#bearKartikPrabhu - you could use the feed only to know when your url is active
#KartikPrabhubear: in fact I was planning to make a page that will accept a url from form input, parse it and send mentions all using ronkyuu. Maybe I should just use that on my own site :P
#jonnybarnesbut that is good, because it will force me to add the next feature. work out if the truncated string ends in a punctuation character and strip that as well
#jonnybarnesbarnabywalters: did you get your truncating code working again? I remember it was cutting notes in the middle of words.
#barnabywaltersactually I’m going to rewrite a bunch of my generic text processing functions as cassis functions instead of having yet another nasty helper library
#jonnybarnesbear: I'm not using the cassis function itself, my code currently provides a truncated string to add the ellipsis too based on the space character. So I can have a truncated string that ends with a full stop
#bearjonnybarnes - ah, I was just commenting in general having written that type of function many many times in the past
#jonnybarnesbarnabywalters: did I read correctly off twitter, people who's sites support the microhub API can now use waterpigs.co.uk/notes/new to post new notes?
#barnabywaltersrektide: talking about code having surface area
#barnabywaltersand more surface area being harder to learn+remember, e.g. functions vs classes (in some cases)
#snarfeddefinitely. surface area is a pretty common, good metaphor for both APIs and security
#barnabywaltersis currently wrapping his original-post-discovery library up into a package
#rektidepost discovery in what way? there's surface, then there's means to make surface exploration happen, which generally means you cannot see the code & examples in action as per a library.