#wordpress 2021-09-11

2021-09-11 UTC
#
wagle
any plugs for multisite smtp plugin solution that dont suddenly want to gouge $250/yr for omnibus's
#
wagle
i'm a dabbler
Tirezias[d], jamietanna and [grantcodes] joined the channel
#
[snarfed]
GWG out of curiosity, do you follow posts on the wordpress forums for your plugins? eg https://wordpress.org/support/plugin/micropub/
#
[snarfed]
might want to subscribe/follow if you don't already
#
[snarfed]
(and others)
#
GWG
I thought I did, but I might miss it occasionally.
#
[snarfed]
yeah the last two there
#
GWG
The bookmark one, I will have to look at. The side effects of the split markup between with and without Post Kinds
#
GWG
Might be time to do some Micropub bug squashing before I work on another project
#
[snarfed]
mind also updating the links (eg github) and example endpoints in https://github.com/indieweb/wordpress-micropub/blob/trunk/micropub.php etc?
#
GWG
Good point. Probably a bunch of little things I can do.
#
GWG
I'll make that my next fixer upper
#
GWG
Reread the code and see what other opportunities are outstanding
#
GWG
I just started experimenting with wordpress capabilities.
#
sknebel
If they have feeds aaronpk might be able to rig up notifications in here
#
GWG
They do actually
#
[snarfed]
GWG do you know what the micropub endpoint is now? mind adding it to the docs? 2.2.4 is giving me 404 "No route was found matching the URL and request method." on /wp-json/micropub/1.0/endpoint
#
GWG
[snarfed]: That's strange. On mine I get a 403
#
GWG
It hasn't moved
#
GWG
Are you sure it is active on the site in question?
#
[snarfed]
yup, getting the same error on two different sites. may well be user error though
#
GWG
Very weird. Any caching?
#
GWG
I'll look into it, but no reason why it shouldn't be activating.
#
[snarfed]
probably my fault, I think I was sending a GET
#
GWG
[snarfed]: It should respond to a GET. Just reject due auth
#
[snarfed]
hmm, no, I think I'm sending POST after all
#
GWG
[snarfed]: I checked your main site, it isn't there
#
GWG
Neither is the header link
#
[snarfed]
oh yeah I don't advertise for discovery, but the plugin is installed
#
[snarfed]
btw I don't have the IndieAuth plugin installed, and it complains, but it used to work anyway
#
[snarfed]
has that changed?
#
GWG
[snarfed]: Yes. A while ago.
#
[snarfed]
aha ok then
#
GWG
[snarfed]: When aaronpk commented he really wanted to shut down indieauth.com.
#
[snarfed]
oh sure but there are plenty of other options that aren't the plugin
#
GWG
The ability to use indieauth.com or another external token endpoint is in IndieAuth, disabled behind a flag
#
[snarfed]
it'd be nice to not require it
#
[snarfed]
ah ok, I'll find that
#
GWG
So you can still do it. It was just easier not to have two codebases.
#
GWG
define( 'INDIEAUTH_REMOTE_MODE', 1 );
#
[snarfed]
undocumented? 😁
#
GWG
It's mentioned in the changelog in version 3.5.0, but as of now, yes
#
GWG
I said I'd document it when I had a non-Indieauth example to add.
#
GWG
non-Indieauth.com, excuse me
#
GWG
I didn't want to steer people toward that site specifically
#
GWG
I suppose I should look at other options.
#
GWG
[snarfed]: Not pushing, but someday I may convince you to try the local endpoint. I've given it a lot of love.
#
[snarfed]
hah, sure!
#
GWG
[snarfed]: I was going to dive into Yarns Microsub. Jack Jamieson is building his life in Japan, and I wanted to see if I could get it to the point I'd use it myself. It isn't quite there yet.
#
GWG
But Micropub support comes first.
#
[snarfed]
GWG is that 404 the error I'd get if I didn't have the IndieAuth plugin installed? I tried setting that flag, but got same error
#
GWG
[snarfed]: Yes. The flag is in the IndieAuth plugin, not the Microub plugin.
#
GWG
So, you would have to have IndieAuth installed and active for Micropub to work now.
#
[snarfed]
sigh ok
#
GWG
But you can disable the local endpoint.
#
[snarfed]
the expiration setting, "Set the Number of Seconds An IndieAuth Tokens Will Expire In (Default is Two Weeks). 0 to Disable." does Disable mean disable expiration? or disable...tokens?
#
GWG
[snarfed]: Disable Expiration.
#
GWG
Making a note to fix the message.
#
GWG
[snarfed]: The update to the spec discussed last month recommends expiring/refresh tokens, but doesn't mandate them. Also, I have a renew option
#
GWG
loves new user feedback
#
[snarfed]
GWG I'm back at this, now getting 401 User Not Found on this Site
#
GWG
Is this a single user site?
#
[snarfed]
(with INDIEAUTH_REMOTE_MODE and using indieauth)
#
[snarfed]
yes, i think? i don't have any special multi-user plugin. i'll check that there's only one existing user
#
[snarfed]
yes, only one user
#
GWG
There's a common issue that I need to redesign, did you set the default user for the site in the settings for the IndieAuth plugin?
#
[snarfed]
probably not, since it shouldn't be using it
#
[snarfed]
looking
#
[snarfed]
ok I'll try with that set
#
GWG
It's been a while since I tested the remote feature
#
GWG
It just tells the site which user represents the root
#
GWG
But it's been pointed out I should default it for single users
#
[snarfed]
same error
#
GWG
[snarfed]: I suppose I could have broken something since the last time I tested that feature. I made sure it worked before I disabled it
#
GWG
That was winter 2020
#
[snarfed]
unittests++
#
Loqi
unittests has 1 karma over the last year
#
[snarfed]
testing++
#
Loqi
testing has 1 karma in this channel over the last year (2 in all channels)
#
[snarfed]
manualtesting--
#
Loqi
manualtesting has -1 karma over the last year
#
[snarfed]
i'll try with the indieauth plugin
#
GWG
I'll do some testing to see what's going on. I do test the feature that maps users to URLs with unit tests
#
[snarfed]
coverage++
#
Loqi
slow down!
#
GWG
I agree
#
GWG
Still a weakness of mine
#
[snarfed]
any suggestions for getting a token manually?
#
[snarfed]
looking for a command line tool
#
GWG
[snarfed]: If you use the IndieAuth plugin with local mode, you can get a token in the admin
#
[snarfed]
I'm on localhost. do I need to enable this local mode separately?
chee joined the channel
#
Loqi
[GWG] My next step is to add the ability to IndieAuth to generate a token so I can do command-line testing.
#
GWG
[snarfed]: I am talking about the built in endpoint.
#
GWG
As opposed to using a remote
#
GWG
I never built a get a remote token
#
[snarfed]
oh I mean the built in one too
#
[snarfed]
seems like remote is broken right now so I gave up on it
#
GWG
Go to the User->Manage Token page
#
GWG
It's at the bottom
#
GWG
I'll retest remote
#
GWG
It's probably worth seeing if I broke something
#
GWG
But I think you'll like the built in
#
GWG
In 2018, it had the editor's seal of approval
#
GWG
I welcome your feedback. You've already given me something to think on
#
[snarfed]
thanks! trying now
#
[snarfed]
woo, using a token from that page worked! at least locally. thank you GWG