#GWG[eddie]: What are you looking to do to contexts exactly?
iasai and [grantcodes] joined the channel
#[grantcodes]Front end is pretty dodgy but post type testing tool is working now, can selectively publish posts and it will test if your html rendering is missing any mf2 properties
#LoqiPost Type Discovery specifies an algorithm for consuming code to determine the type of a post by its content properties and their values rather than an explicit “post type” property, thus better matched to modern post creation UIs that allow combining text, media, etc in a variety of ways without burdening users with any notion of what kind of post they are creating https://indieweb.org/post-type-discovery
#[tantek]I need to update that a bit but it has a github issues link
#[tantek]GWG what comment property? where are you seeing this
#Loqi[aaronpk] IndieNews: 📰 News aggregator for IndieWeb-related posts
iasai, [Rose] and [grantcodes] joined the channel
#[grantcodes]GWG: I would doubt anyone actually posts content with comments already included. That's really more useful on the other site that shows how to markup comments in HTML. I'm using the same data source for both
#GWGAlso wondering if anyone posted pure invite posts
#GWGI gave it a test and it did point out I'm not currently supporting quotation posts
#jeremycherfasI could use some PHP help if anyone is able.
iasai joined the channel
#jeremycherfasMy problem is that I want to create a folder with a unique name, based on a date. But there could be more than one folder needed for the same date. I thought of adding hour, but it is possible there will be overlap there too.
#jeremycherfasBut I would like it to be robust enough to cope with the second folder already existing.
#jeremycherfasThere will never be more than 9 possible folders for a day, so I thought of adding a suffix to the slug. But I can't see a way to use either a do while loop or a straight while loop to check that the folder does not already exist. And I can't see how to loop back within the existing if block.
#[Rose]And here too, because I messed up the formatting 😄
#[Rose]When you first call the function you don't need to provide a value for counter, what you probably want to do though is return folderPath so you know what the folder is called
#[Rose]I accidentally took that out, but I'm sure you can manage to put it back 😉
iasai joined the channel
#jeremycherfasThanks [Rose] Studying that now. I see that I completely forgot that `return` exists. :)
#[grantcodes]GWG: That's cool that it's already useful! Again I doubt there are many micropub clients that will post `quote-of`. But never hurts to be prepared!
#[Rose]I should note, that code is not my best work, but it's a short example for you 😉
#[grantcodes]Definitely need to get more examples in there though
#GWG[grantcodes]: I added it to my post type discovery function, until someone wants to post one, I might not write a display template
#GWGIf someone tried to post one, it would work, but use the generic template, which might work or not
#GWGLike, bookmark, etc all use the same layout right now
#jeremycherfasI should shamefacedly confess that in my previous effort I managed to create 129,545 folders by getting the existence check wrong.
#jeremycherfas[Rose] I get an error Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes when it creates the folder second time around.
#jeremycherfasI'm wondering whether incrementing the counter in the internal function call does something weird.
#ZegnatThat sounds more like you got into a loop that took too long
#jeremycherfasThe second time, counter is 1 and so true and so it proceeds to the second IF and makes the directory.
#jeremycherfasUNLESS when it first sets $folderPath, that should include Counter. Because every time it comes back in, it resets $folderpath without accounting for counter?
#[jgmac1106]so I have a WordPress theory I want to test...the mf2 plugin never really worked because of older microformats...since editing a theme is hard can I search through my WP files and delete any old mf2 properties and then use the mf2 plugin?
eli_oat joined the channel
#jeremycherfasNo, that's not right because it creates a new folderPath in the first IF
#ZegnatIf the counter is any number not 0 it gets added to the folder name. So when a directory already exists it ups the counter by one and runs the function again.
#ZegnatThis can definitely be done without the recursion. What is it you want the function to result in?
#Zegnat(All these dumb meeting are cutting into my idle indieweb time)
[ken] joined the channel
#ZegnatIs create_folder() a grav thing or a function you call yourself? I think I may need some context.
#[Rose]It's his function, as far as I know Grav directly uses mkdir
#jeremycherfasIt is a function I call myself. I'm extending slug now to include hours and minutes, and my problem now is that date_parse_from_format does not seem to give me leading zeroes.
#ZegnatSo when you call it, what do you expect it to do, jeremycherfas?
#ZegnatIf you give me the wordy-spec, I can have a look at explaining the codey-hows ;)
#[Rose]How about date('yyyy-mm-dd-hh-i', strftime($dateToParse); ?
#jeremycherfasI pass it the path and the slug. If there is no folder at path.slug, create one. If there is a folder at parth.slug, create a folder at path.slug.suffix
#[Rose]Missing brackets and incorrect functions because I'm on a Tram
#jeremycherfasBut I do think that the better answer is to ensure that slug is unique.
#Zegnat[kevinmarks]: interesting! I hadnt read that post before but we came to the same conclusion in our discussions, it should be fine to add WWW-Authenticate to 2xx responses.
[jgmac1106], iasai, snarfed, KartikPrabhu, KidReese777, RenoG, Reno__ and gRegorLove joined the channel
#gRegorLovejgmac1106, I've gotten a bit more familiar with Weebly. Adding mf2 wouldn't be too difficult, though we're using a customized theme so I'm not in a place to set up/distribute an mf2 theme.
#LoqigRegorLove: aaronpk left you a message 4 days, 16 hours ago: looks like indiebookclub has already been registered for indielogin.com!
#gRegorLoveI mean, I could set one up, but I wouldn't be using it myself / not too interested in maintaining it.
#gRegorLoveI'll assist if someone wants to take that on though.
iasai, ben_thatmustbeme, [tantek], [ken] and [jgmac1106] joined the channel
#[jgmac1106]yeah same here, good to know for back burner, if someone asks we can work with them
[eddie], snarfed, [kimberlyhirsh], iasai, [kevinmarks], [tantek], [grantcodes], [jackjamieson] and KartikPrabhu joined the channel