#wordpress 2021-12-12

2021-12-12 UTC
RIZY101[d] and [chrisaldrich] joined the channel
#
[chrisaldrich]
For the WordPress micropub client, is there already a pre-existing field(s) for crediting posting applications? So for example, If I make a post with Quill is the client name, URL, or other data about the client being saved so that I might use it in display to show what I used to make the post and or advertise the client to others? https://indieweb.org/giving-credit#Crediting_Applications
#
GWG
[chrisaldrich]: There actually is
#
[chrisaldrich]
I've been thinking about adding such a thing to my /handwriting posts to add a little bit of /fun.
#
[chrisaldrich]
Do you know the name(s) of the fields? Are they in post-meta?
#
GWG
Yes, probably should add a helper function though
#
[chrisaldrich]
Does the micropub spec have optional field names for these so that I can automatically bundle them into my micropub request.
#
GWG
It does not, because it isn't Micropub doing it, it is IndieAuth
#
GWG
Micropub just stores it when it makes the post. And to be honest, I really should reconsider storing the whole thing
#
GWG
Micropub stores the entire auth response as 'micropub_auth_response' which includes the client info.
#
[chrisaldrich]
Hmmm... that's problematic as then I don't know how to automatically dump that in then. Maybe I could use it as a default setting that they're handwritten unless there's other details.
#
GWG
[chrisaldrich]: Well, you don't have to. Where did you get the token you are using to post?
#
[chrisaldrich]
I created a manual token for IFTTT.
#
[chrisaldrich]
Maybe I could create a custom manual token, presumably with a name specific to just that one workflow?
#
[chrisaldrich]
Or will the manual token have a pre-assigned name by the IndieAuth plugin?
#
[chrisaldrich]
I haven't looked at that stuff in over a year now.
#
[chrisaldrich]
GWG++ for making it such that I can have set it and forget it for all this time.
#
Loqi
GWG has 10 karma in this channel over the last year (79 in all channels)
#
GWG
You are making me think of changing it, but right now, all you have to do is...
#
GWG
get_post_meta on the 'micropub_auth_response' field.
#
GWG
Then look for client_name, client_id, and client_icon
#
GWG
id is always there, icon and name are not.
#
GWG
Of course, you are making me think I should upgrade it
#
GWG
Storing the same thing over and over is redundant.
#
GWG
There should be a client list, and just store which one it is
#
[chrisaldrich]
That's a smart idea, particularly since there is a pre-existing list of them.
#
GWG
[chrisaldrich]: Well, this would be an IndieAuth change, effectively.
#
GWG
As it handles all of this now.
#
[chrisaldrich]
I'll have to think of an Icon for the handwriting kind, or just create one manually.
#
Loqi
[dshanske] #268 No Longer Store Entire Auth Response
#
Loqi
[dshanske] #228 Stop storing client info in each token
#
GWG
[chrisaldrich]: How's that?
#
[chrisaldrich]
trying not to burn dinner while I hack on this on the side... 🙂
#
GWG
[chrisaldrich]: Sounds good.
#
[chrisaldrich]
Now the question: What to name the thing?
#
[chrisaldrich]
GWG, have you considered adding this sort of application credit to the meta data displayed on your posts?
#
GWG
[chrisaldrich]: Yes, I said that in the issue I opened
#
[chrisaldrich]
sorry GWG, I only saw the one issue and hadn't opened the other yet.
#
[chrisaldrich]
the scroll on my slack moved to quickly while cooking.
#
GWG
I just never did it
#
GWG
You know how it is...too many ideas
#
GWG
But I'm in Micropub mode right now
#
GWG
So maybe
#
[chrisaldrich]
one small thing at a time.
#
[chrisaldrich]
this one seems relatively quick and easy with what's there now (I'm discounting work on making the bigger structural storage changes.)
#
GWG
[chrisaldrich]: I'll just add a function and then no one has to worry about where it is stored.
#
[chrisaldrich]
GWG, it looks like for manually created tokens the default image is the author's gravatar. I suppose I could get around this by creating a separate user with a different avatar, but then this would also change the ability to post to my main account with that token? Is there a way to alternately specify a different client image besides replacing the one directly in the database?
#
GWG
Not yet, but I can try to add in future
#
[chrisaldrich]
Don't go overboard. I'm not really sure where I might display it at present anyway.
#
GWG
[chrisaldrich]: That's why I never did it
#
[chrisaldrich]
Okay, got a new manual token set up so that I'm at least getting the "app" name (Amanuensis, for now) into my posting meta data. Thanks GWG.
#
[chrisaldrich]
I'll have to delve into my theme code to add the visual display portion.
[jeremycherfas] joined the channel
#
[jeremycherfas]
I’m amazed at the progress you’re able to make *while* cooking dinner. Cooking dinner stops all progress for me.
[tangerinelabor], Murray[d], [Sam_Butler], iama_hooman[d], Mysterio_Meezy[d, Ruxton, [snarfed], maxwelljoslyn[d] and P1000[d] joined the channel
#
[chrisaldrich]
[jeremycherfas] I was cooking an old standby, so there wasn't a lot of cognitive load. I did manage to burn the apples for the applesauce. Fortunately the "caramelization" gave it a nice depth.
#
[jeremycherfas]
Cooking what you eat takes on new depth.
[dmitshur], [tangerinelabor], barryf[d] and sarahd[d] joined the channel