#dev 2018-06-16
2018-06-16 UTC
iasai and [tantek] joined the channel
#
GWG aaronpk: https://github.com/snarfed/wordpress-micropub/issues/133 - For context
[cjwillcock] joined the channel
#
KartikPrabhu !tell [kevinmarks]: please review the PR https://github.com/microformats/mf2py/pull/106

AngeloGladding and tantek__ joined the channel
renem, strugee, snarfed and eli_oat joined the channel
#
gRegorLove chrisaldrich: the indiebookclub settings page now has the last micropub response. That might help debug the error you're getting. A couple other WordPress people have had it work, so I think maybe it's an outdated plugin?

[mrkrndvs], tantek__, eli_oat and tantek_ joined the channel
chrisaldrich, [chrisaldrich], KartikPrabhu, snarfed and [sebsel] joined the channel
[Vanessa] joined the channel
[kevinmarks] joined the channel
[jgmac1106] and jeremych_ joined the channel
#
Zegnat First time I actually see a .dev URL in use! https://pptr.dev/

#
jeremycherfas Zegnat I am finally able to work a bit on my Grav micropub, and I have forgotten my password for /auth. Do I just delete config.php and rerun setup.php?

#
jeremycherfas needs to take better notes

#
jeremycherfas I suppose I could try and recover it first. I know it was very simple!

sebsel joined the channel
#
jeremycherfas Omnibear is playing up again. Alas. And the Inspect pop-up doesn't seem to work any more, since 1.1.0

#
jeremycherfas Still hangs on "Retrieving access token..." but does actually retrieve it.

#
jeremycherfas Error authenticating to micropub endpoint.

#
jeremycherfas But looks as if it isn't even sending the request.

#
jeremycherfas Maybe I should open a tunnel to Quill instead.

#
jeremycherfas Login fails with Quill through ngrok.

#
jeremycherfas Would that be because auth_me is different?

#
jeremycherfas I don't see how.

#
jeremycherfas And I don't think there is any way to revert to an earlier version of Omnibear.

#
Loqi Omnibear is a browser extension for posting text notes, replies, and likes to your website using Micropub https://indieweb.org/Omnibear

#
jeremycherfas Ah. So it might need a new USER_URL ?

#
jeremycherfas That would be a pain.

#
jeremycherfas What is shpub

#
Loqi shpub is a command line micropub client written by Christian Weiske https://indieweb.org/shpub

#
jeremycherfas Maybe I should try that instead.

#
jeremycherfas !tell cweiske Not seeing how to specify which server when I post a note from shpub

#
jeremycherfas Right. But -s="server" doesn't seem to work. Must option come before the comman, or after the command and the content?

#
jeremycherfas "If you pass a third parameter, then that will be the name of the connection." if note is first parameter and content is 2nd, URL of server as third does NOT work

#
Zegnat Not sure it works with =. Here is an example, it shows it as the first option specified: http://cweiske.de/shpub.htm#debugging

#
jeremycherfas Brilliant. Thanks I'll try that.

#
jeremycherfas Progress!

#
jeremycherfas It doesn't actually find /offlinepub.test/mp/

#
jeremycherfas And yet, it is definitely there, and I can reach it with the exact url that the error message returns

#
jeremycherfas Yes. 404 "The requested URL /offlinepub.test/mp/ was not found on this server."

#
jeremycherfas I wonder whether it is something about relative URLs

#
jeremycherfas Yes.

#
jeremycherfas Ah. Maybe not. Mp is at http://localhost:8888/offlinepub.test/mp/

#
jeremycherfas But the rel is correct <link rel="micropub" href="http://localhost:8888/offlinepub.test/mp/">

#
jeremycherfas Could be permissions?

#
jeremycherfas I did. It is calling 'http://localhost:8888/offlinepub.test/mp/'

#
jeremycherfas Would permissions give a 404? Or more likely something like forbidden.

#
jeremycherfas That's what I thought. Truly baffling.

#
jeremycherfas Absolutely

#
jeremycherfas I could try curling it direct.

#
Zegnat curl -vvv http://localhost:8888/offlinepub.test/mp/

#
jeremycherfas I did it with -I and got a 200

#
jeremycherfas -vvv shows me a list of all the files in that location as html

#
jeremycherfas 404 not found.

#
jeremycherfas Yes, because that's where nanopub.php lives.

#
jeremycherfas Aaaah indeed.

#
jeremycherfas Need to point the endpoint at the actual endpoint, not just the folder!

#
jeremycherfas Rubber ducking FTW.

#
jeremycherfas I feel we must have, somewhere, because Omnibear was working before, but I'm trying to find where.

#
jeremycherfas I hard-coded $base_url in skippy's and that was working. Then decided to work with dgold's nanopub instead because that seemed simpler. :)

#
jeremycherfas But even after changing the endpoint, shpub continues to use the previous one.

#
jeremycherfas Seems like it.

#
jeremycherfas How do you add a GET command to curl?

#
jeremycherfas If I wanted to test q= for example

snarfed joined the channel
#
Zegnat The curl default is GET. And those parameters are just ?q=bla behind the URL. So http://localhost:8888/offlinepub.test/mp/nanopub.php?q=something

#
jeremycherfas I see the URL setting, and they are correct. So I thought it would go to the URL, discover the micropub endpoint, and then use that.

#
jeremycherfas I could simply delete and start again.

#
jeremycherfas Didn't discover the new endpoint. I'll empty caches. Although I don't see why, as Chrome is displaying the new endpoint in source.

#
jeremycherfas Oh now that's interesting. Shpub did not create new cache files even though I reauthroised.

#
jeremycherfas Now getting an error from nanopub, which is definite progress.

#
jeremycherfas The request lacks valid authentication credentials

#
jeremycherfas And that is to do with $response['me']

#
jeremycherfas So need to check in configs.php

#
jeremycherfas Fixed! Woohoo. But what I have used two of the three hours available this afternoon just to get back where I was. I doo think though that shpub is the easier tool to test from.

#
jeremycherfas Zegnat++ for rubber ducking

#
jeremycherfas Cweiske++ for shpub, even in his absence.

#
jeremycherfas Which ordinarily would be scary, but in this case being able to see what's going on is actually reassuring.

#
jeremycherfas Given Grav's folder structure, my goal is to see up variables that my fork of nanopub can use to decide where to put things.

#
jeremycherfas I suppose it is best to create my own section within the existing configs.php

iasai joined the channel
#
jeremycherfas Cool

#
jeremycherfas It is a beautiful afternoon here; I should do the same. Have fun, and thanks again.

[kevinmarks], barpthewire, [miklb] and snarfed joined the channel
#
jeremycherfas Is there any reason why mkdir http://localhost:8888/grav-admin/user/pages/05.note/WTF3/ from the terminal creates the folder in usr/bin, and from a PHP program seems to have no effect whatsoever?

#
jeremycherfas Hmmmn.

#
jeremycherfas "It was working before"

[miklb] and [cleverdevil] joined the channel
#
[cleverdevil] !tell [grantcodes] I’m not sure if it’s me being on the iOS 12 beta or the latest metadata changes, but I can no longer use Together as a PWA. When I try and login, it opens my website in Safari rather than keeping the login process inside the PWA.

sebsel, barpthewire, swentel, KartikPrabhu, [kevinmarks], chrisaldrich, gRegorLove and [chrisaldrich] joined the channel
#
petermolnar I made some simplifications to my CSS but I still feel like something is missing

#
petermolnar I got rid of the body

{ font-size: }
part#
petermolnar so it should be using the browser default, which will make it an interesting experiment

[kevinmarks] joined the channel
#
[kevinmarks] If you use em/rem elsewhere that should still work

#
petermolnar yep, I'm aware, and that works

#
petermolnar but for a very, very long while, I always had a base 20px or similar defined

#
KartikPrabhu having px sizes on the html element also works with browser resizing if you use em/rem everywhere

#
KartikPrabhu I find that brwoser default font sizes are too small

#
KartikPrabhu hmm not sure why this didn't trigger https://chat.indieweb.org/dev/2018-06-16#t1529110652007800

#
Loqi [KartikPrabhu] !tell [kevinmarks]: please review the PR https://github.com/microformats/mf2py/pull/106

[Vanessa] joined the channel
#
[kevinmarks] Wow, looks like big improvements

#
KartikPrabhu yup, and the experimental stuff for snarfed

#
KartikPrabhu [kevinmarks]: if you do accept it it would also be good to add "tags" and cut a release

sebsel joined the channel
#
gRegorLove !tell jackjamieson, jgmac1106 indiebookclub has an option for DOI Name now. Try it out and let me know what you think.

#
gRegorLove chrisaldrich, In case you didn't see it (forgot to !tell) https://chat.indieweb.org/dev/2018-06-16#t1529119417375700

#
gRegorLove DOI might be of interest to you as well ^^

#
gRegorLove I know

#
gRegorLove Weird that it's working for some and not others. That's why I was thinking maybe he has an older version of some plugin, like indieauth

#
gRegorLove Let me know if there's anything I can do to help debug

#
gRegorLove access_token is not sent in the body since it's a JSON request, just the Authorization: Bearer header

KartikPrabhu joined the channel
#
gRegorLove indiebookclub doesn't send access_token in the body, only the HTTP Authorization header.

#
gRegorLove Just an additional data point, if that matters to the WP plugin

snarfed joined the channel
#
gRegorLove This appears to be where the 401 comes from: https://github.com/snarfed/wordpress-micropub/blob/979b19d8e8cab88c3469b306a4113d1dff10de6d/micropub.php#L178

#
gRegorLove So maybe get_current_user_id() isn't returning the user_id

#
gRegorLove The IndieAuth plugin doesn't return a 401 anywhere I can find.

#
gRegorLove And that's Micropub plugin hooking into IndieAuth

#
gRegorLove This error isn't during authorization, it's when the micropub post is sent. Micropub plugin must be hooking into IndieAuth somewhere.

#
gRegorLove Sorry, clarifying, Indieauth plugin doesn't return a 401 with body "Unauthorized" that I can find. Only that line linked above does that.

KartikPrabhu, snarfed and [eddie] joined the channel
#
[eddie] !tell aaronpk: I’m working hard on trying to get Indigenous out in time for IWS. I know for SURE I’ll at least have a “Pre-Order” button with a page with screenshots done, but I’m still trying to get the full thing ready for download before. Just to help me set my own expectations, do you think Aperture will/would be able to have a public opening by then, or does that not look possible anymore? That will help influence my choices of wh

snarfed joined the channel