#dev 2017-05-26
2017-05-26 UTC
[eddie] and KevinMarks_ joined the channel
#
kartikprabhu.com edited /reply-context-examples (+6) "/* Kartik Prabhu */ update image size to not blow up" (view diff)
eli, eli_dot_li, miklb, [shaners], gRegorLove and [eli_oat] joined the channel
#
gRegorLove o/ [eli_oat]. Not that I'm aware of.
#
gRegorLove What is micropub servers?
#
gRegorLove [eli_oat]: Have you seen http://micropub.rocks? Might help with your implementation
#
gRegorLove Hehe
#
[eli_oat] I’ve been playing with this: https://gist.github.com/adactio/8168e6b78da7b16a4644
#
gRegorLove Are you using tokens.indieauth.com or working on your own token endpoint?
#
Loqi In OAuth terminology, scope is a way to limit what parts of your account are accessible by third-party applications https://indieweb.org/scope
#
gRegorLove I think "create" is the scope it needs. https://www.w3.org/TR/micropub/#scope
#
gRegorLove The bearer token coming back from the micropub client (like quill) will have one or more scopes requested. Your endpoint code needs to check that.
#
gRegorLove adactio's older code (micropub spec has changed since then I'm sure) is checking for "post" scope instead of "create"
#
gRegorLove So changing the lines around 66 in his code for "create" should at least get you a step closer
#
gRegorLove Your endpoint decides what scopes it supports, so you could only support create for example. Probably a good starting point.
#
gRegorLove newerrormessage++
#
gRegorLove What's $mysite set to?
#
gRegorLove I see a test post from quill on your site!
mblaney joined the channel
#
gregorlove.com edited /2017/Nuremberg (+16) "attempt to expand h-event div to capture photo" (view diff)
#
gRegorLove Sweet, no more "me" error?
#
gRegorLove Your h-entry microformats could be tweaked a bit if you still needed a project to keep you awake ;)
#
gRegorLove The dt-published property could be on a <time> element so you can use the datetime attribute.
#
gRegorLove So you can specify the more human friendly date visibly, and the ISO date for microformats parsers.
#
gRegorLove It also parses "Published:" currently, e.g. http://pin13.net/mf2/?url=https%3A%2F%2Feli.li%2Fentry.php%3Fid%3D20170524220040
#
gRegorLove The e-content is blank in the parsed results. That should surround the post's body
#
ben_thatmustbeme briefly reviews before sleep
#
gRegorLove Oh, and an explicit p-name around just the note's content will be good too. p-name is used a lot in reply contexts. It's implied if the property doesn't exist, so usually returns more than desired. That's why my reply-context to you on https://gregorlove.com/2017/05/welcome-aboard/ has the extra "published" text and webmention stuff
#
ben_thatmustbeme [eli_oat]++ welcome
#
gRegorLove Hope that's not overwhelming, [eli_oat] :)
#
gRegorLove Realized it'd be easier to show code. Here's a modified version of your post and how it parses. Compare with above pin13.net link: http://pin13.net/mf2/?id=20170526035715980
#
gRegorLove yw. Yeah, pin13.net is great for testing out microformats, by URL or direct entry.
#
gRegorLove woot!
KartikPrabhu, jeremycherfas, barpthewire and persand joined the channel
loicm, KevinMarks and barpthewire joined the channel
#
@Packalyst laravel-indieauth-client by Ben Roberts | Laravel package for indieauth based authentication http://packalyst.com/packages/package/inklings.io/laravel-indieauth-client #laravel (twitter.com/_/status/868044875173855232)
KevinMarks, [eli_oat], [colinwalker], KevinMarks_, barpthewire and jeremycherfas joined the channel
#
jeremycherfas Mornig Indieweb
#
jeremycherfas Zegnat: You know you asked me to var_dump $currRoute in that webmention plugin?
#
jeremycherfas I did that, and it is the part of the URI after the base. I.e. The base() is http://localhost:8888/grav-admin/blog/duty-calls and $currRoute is /blog/duty-calls
#
@Inkwater_Masha How To Get Published: The Options (INFOGRAPHIC) http://www.huffingtonpost.com/2013/05/20/how-to-get-published-infographic_n_3306506.html?ncid=edlinkusaolp00000003 #writerslife #indieauth #selfpub (twitter.com/_/status/868091941551996932)
jeremycherfas_ joined the channel
#
jeremycherfas_ In any case, adding either /blog.atom or /blog.rss or the full paths to those does not have any effect.
#
petermolnar.net edited /location (+260) "adding Bing maps url example for petermolnar.net" (view diff)
#
jeremycherfas Yeah, what can I tell you?
#
jeremycherfas But here’s the odd thing. Although I have several routes and paths set in the webmention.yaml, prompted by your question I did a dump on those. And only the first one of each is present in the array. Now that really is very odd.
#
jeremycherfas My whole webiste? Yes. Hang on.
singpolyma joined the channel
#
jeremycherfas This is the whole site https://github.com/jeremycherfas/grav-admin
#
jeremycherfas Within that, though, I have separate repositories for user https://github.com/jeremycherfas/user
#
jeremycherfas Because that is a lot more efficient.
#
jeremycherfas And for the webmention plugin https://github.com/jeremycherfas/grav-plugin-webmention
#
jeremycherfas But that’s the one that starts to use Xray.
#
jeremycherfas Even changing the order of the Ignored in webmention.yaml does not change them in the dump.
#
petermolnar I see Grav popping up more and more, interesting; the last time I tried it it collapsed under my site, I wonder if the media cache handling got any better
#
jeremycherfas So I’m thinking there’s something very wrong indeed with how the plugin gets the paths from config.plugin.webmention
#
jeremycherfas Petermolnar: my site isn’t very media heavy, so I can’t really tell you. I’d love to fix this problem, though, Without it, Grav is useless for indieweb.
#
jeremycherfas Unless someone else builds a better plugin.
#
petermolnar in this context, 'someone' always applies to the one who wrote the sentence ;)
#
petermolnar Zegnat for Grav, the used to use an image resizer which was GD based and therefore it wasn't possible to keep metadata for the downsized images, which was a dealbreaker for me
#
petermolnar if that's still the case, that project would really benefit from an imagick port
#
petermolnar neither am I
#
petermolnar especially not once you get a hold if imagemagick
#
petermolnar that thing is powerful
#
petermolnar extremely useful for square crops
#
jeremycherfas Petermolnar I am trying to improve it in one way, which I started at IWC last weekend. But then cweiske identified this other problem which I thought would be reasonably easy to solve.
#
jeremycherfas It isn’t.
#
petermolnar routing problems: http://i.imgur.com/eAwdKEC.png
#
petermolnar Zegnat that is completely true
#
jeremycherfas What is it?
#
Loqi It was a dark and stormy night https://indieweb.org/It
#
jeremycherfas Mind you, I may have got another clue that I am now looking at.
#
jeremycherfas Ahah! The plugin is picking up its settings from /localhost/config etc. I’ve been fooling around in /user/config etc.
[kevinmarks] joined the channel
#
jeremycherfas Nope, that wasn’t it. :( :( :(
#
jeremycherfas Although the ignore paths are now all there, it is still putting that bloody link into the feed pages as well.
#
jeremycherfas I thought so from my original testing.
#
jeremycherfas So, what’s the fix, Zegnat?
#
Zegnat This is a fix, but not “the” fix: https://gist.github.com/Zegnat/0f724b03f02efafa9f52ab3f20456e67
#
jeremycherfas I’m guessing it will be something to do with that $output variable
#
jeremycherfas OK, can I try and understand what you’re doing?
#
jeremycherfas So, in the first bit, you create a new variable that coresponds to all of $output up to, but not including, the closing head tag.
#
jeremycherfas If that’s empty, you return.
#
jeremycherfas And then, in ythe second bit, you use your variable instead of the thing he originally used.
#
jeremycherfas BUT here’s the bit I don’t understand: your new variable is equal to the thing he originally used.
#
jeremycherfas So, what’s the change? Reutrning if that is empty?
#
jeremycherfas Ah. I see. I think.
#
jeremycherfas I did try inserting a test for the format of the page, which was why I was asking about return and exit yesterday, but that didn’t seem to work for me.
#
jeremycherfas Copying it to my code now!
#
jeremycherfas It works locally! I cannot thank you enough.
#
jeremycherfas I think you should take credit for a PR to this https://github.com/Perlkonig/grav-plugin-webmention/issues/5
#
jeremycherfas I guess I could do a multifile search for that literal string.
#
jeremycherfas Zegnat: I tried that, using page.format, or something like it, but I couldn’t get the exit conditions correct. There is a variable that tells you whether the template_Format is HTML, or ATOM or RSS
#
jeremycherfas Sknebel: I can get at the content type, but I could not get the return/exiot logic to work.
#
jeremycherfas And the good news (I think) is that </head> does not appear as a string anywhere else in the whole install.
#
jeremycherfas Not that I am aware of. Are you getting error messages?
#
@aaronpk @postleafapp When you start diving in, https://webmention.rocks is useful to test things out! Try getting a comment to appear there! (twitter.com/_/status/868116878014554113)
#
@postleafapp @andrew_roberts Yes! And I was just introduced to Webmentions so that may solve the problem too. ? (twitter.com/_/status/868117405951766528)
#
jeremycherfas Zegnat: Try deleting the twigfeeds plugin for a start.
#
jeremycherfas Alternatively, and probably better in the long run, download the grav skeleton from getgrav.org and create a user for yourself. Then you can probably download my user folder too.
#
jeremycherfas Grav does allow multiple users, but I have never played with that.
#
ben_thatmustbeme whatis postleaf?
#
ben_thatmustbeme what is postleaf?
#
Loqi It looks like we don't have a page for "postleaf" yet. Would you like to create it?
#
jeremycherfas Hang on a minute. I haven’t finished pushing the webmention plugin, which is a separate repo because I forked it from perlkonig
#
ben_thatmustbeme has gone hunting down other projects to bring in to the indieweb
#
Loqi [edhelas] All the public Movim feeds can be exported to Atom XML feeds https://nl.movim.eu/?feed/pubsub.movim.eu/Movim . Is his format an IETF one? I prefer to stick to Internet standards and not use some indie protocols and formats for now (especially regardi...
#
jeremycherfas !tell ben_thatmustbeme I’m working on Grav — without much success.
#
ben_thatmustbeme no issues sections for this one though ... https://github.com/Libertree/libertree
#
ben_thatmustbeme jeremycherfas++
#
ben_thatmustbeme what is grav?
#
Loqi Grav is a flat-file CMS built on PHP, with Twig templating, and YAML + Markdown for storing articles (YAML for metadata, Markdown for the content) https://indieweb.org/Grav
#
ben_thatmustbeme lol, i somehow don't think this one will work http://twtxt.xyz/
#
aaronpk that reminds me of rss 3 http://www.aaronsw.com/2002/rss30
#
jeremycherfas Very stupid question: Do I need a separate webhook to update a repo inside another repo, which is updated via a webhook?
#
ben_thatmustbeme hmm, i dunno where to start on this one https://github.com/Bombe/Sone
#
@kevinmarks @postleafapp To programmatically post comments, see micropub. You post them on your site and tell the original site using webmention (twitter.com/_/status/868121132095987712)
#
@postleafapp @kevinmarks Thank you! I was just introduced to webmentions and I think the idea is great. ? (twitter.com/_/status/868121366305943552)
#
jeremycherfas Just when I thought I had everything solved.
#
jeremycherfas I’m seeing the latest commit here https://github.com/jeremycherfas/grav-plugin-webmention
#
jeremycherfas 11 minutes ago
#
jeremycherfas Yes, but apparently not the webmention plugin.
#
jeremycherfas I just checked the webhook on /user and it has not sent anything since I pushed to the plugin.
#
jeremycherfas Let me just see if I can pull directly.
[kevinmarks] joined the channel
#
jeremycherfas I don’t understand that. Anyway, I just pulled to the live version, and your fix works perfectly Zegnat. So, thanks again.
#
jeremycherfas Zegnat++
#
jeremycherfas Now, of course, I have to get back to my IWC project and actually display those pesky webmentions.
#
jeremycherfas I know how to do the template format check, but I didn’t know how to get out afterwards. I think I do now.
#
jeremycherfas I do still think it is worth your putting in the PR.
#
jeremycherfas And I will pick up where I left off on trying to get the plugin to use XRay, to make it simpler to handle the received data.
#
jeremycherfas Ooops.
#
jeremycherfas Although my email address is pretty common knowledge :)
#
jeremycherfas I tghink I see what has happened. I have a separate repo for the plugin alone, because ultimately I want to submit the switch to XRay. And of course the folder is also under /user. But I hadn’t pushed /user in a while
#
Zegnat jeremycherfas, alright, I got template format checking in there. So it will stop when Grav is not rendering HTML: https://gist.github.com/Zegnat/0f724b03f02efafa9f52ab3f20456e67
#
jeremycherfas Zegnat: Well done.
#
jeremycherfas I had the first part of that, but couldn’t get it to work.
#
jeremycherfas Zegnat++
#
jeremycherfas That seems to be a Grav setting, so that you can actually do local development. I had forgotten all about it too.
#
jeremycherfas I’m just not as worried about that, to be honest. But it would make it more complete.
miklb joined the channel
jca and miklb joined the channel
[sebsel], gRegorLove and jeremycherfas joined the channel
#
jeremycherfas You mean the way it is made up of base() and route()?
[colinwalker] joined the channel
#
[colinwalker] Anyone about who could help with a WordPress plugin issue?
#
dougbeal|imac Maybe? ;)
#
[colinwalker] Isn't that always the way ;)
#
[colinwalker] I've got a plugin which creates a meta box. Then a function is hooked in to save_post to update the contents of a post with values from the meta box. It works fine when the function to do this is in the main plugin file but if I move it to an include it stops working.
#
dougbeal [colinwalker]: looking at https://github.com/dshanske/indieweb-post-kinds/blob/master/indieweb-post-kinds.php, the files are explicitly loaded and add_action is called from the main plugin file
#
dougbeal [colinwalker]: then all the post hooks are in an init function in the includes file https://github.com/dshanske/indieweb-post-kinds/blob/master/includes/class-kind-tabmeta.php
#
[colinwalker] Hmm. Maybe I need to rework it as a class then.
#
[colinwalker] I was looking at classes earlier but wasn't sure how to structure it. Thanks doug - gives me a pointer.
#
[colinwalker] Followed you on micro.blog earlier as well by the way ?
#
[colinwalker] Everything on my blog goes there ;)
#
[colinwalker] nods pretending to know what that means lol
#
[colinwalker] So how does a namespace come into it?
#
[colinwalker] Ah, got you
#
[colinwalker] Renaming to be done :)
#
gRegorLove 5.2, holy smokes.
#
gRegorLove Do they have a timeline for deprecating that?
#
gRegorLove Interesting
#
gRegorLove I get why, just figured they might have some plan
#
gRegorLove Which stats page?
#
sknebel gRegorLove: https://wordpress.org/about/stats/
#
gRegorLove 4.9% seems pretty low
#
gRegorLove Heh, true
#
gRegorLove Guess I just want to shame the hosts that haven't updated PHP since 2011 :)
[cleverdevil] joined the channel
#
[cleverdevil] Its 5.6 required now, last I checked.
#
[cleverdevil] That was a relatively recent change, though.
#
[cleverdevil] WordPress.org has a bit of an obsession with backcompat to retain and grow that "28% of all websites run WordPress" stat.
KartikPrabhu, barpthewire and [jeremycherfas] joined the channel
#
@schmarty Site Updates: Webmention Notifications in Matrix with Hubot: https://martymcgui.re/2017/05/26/160758/ (twitter.com/_/status/868199036351852544)
#
martymcgui.re edited /webmention.io (+626) "add info about web hook notifications, hubot script" (view diff)
#
gRegorLove what is hubot?
#
Loqi hubot is a customizable life embetterment robot https://indieweb.org/hubot
#
gRegorLove Hah
#
Zegnat [jeremycherfas], new diff if you want to try: https://gist.github.com/Zegnat/0f724b03f02efafa9f52ab3f20456e67
KartikPrabhu joined the channel
KevinMarks and [eddie] joined the channel
#
Zegnat !tell jeremycherfas thanks for raising the issue and talking me through it! PR sent! https://github.com/Perlkonig/grav-plugin-webmention/pull/6
