#wordpress 2019-08-01

2019-08-01 UTC
[David_Bryant] joined the channel
#
[David_Bryant]
[tantek]'s comment about IndieAuth endpoint problems is based on my mentioning it to him today. I'm the WordPress-on-Dreamhost use case and ever since the IndieAuth plugin update to 3.4.0 my auth and token endpoints have disappeared. I'm on WordPress 5.2.2 and the IndieAuth plugin says my auth endpoint is https://orangemoose.com/blog/wp-json/indieauth/1.0/auth and my token endpoint is https://orangemoose.com/blog/wp-json/indieauth
#
[David_Bryant]
both of those return errors when accessed.
#
[David_Bryant]
My webmention and micropub endpoints no longer work either.
Xroot joined the channel
#
[David_Bryant]
This leads me to believe something else is responsible (e.g. my Permalinks settings)...
#
[David_Bryant]
Yep -- toggling the Permalinks to Plan and then back to "Day and Name" cleared up the endpoint problem (wp-json).
#
Loqi
Yep has -1 karma over the last year
#
GWG
That's weird
[Michael_Beckwit joined the channel
#
[Michael_Beckwit
oh wordpress
#
GWG
Yes, what about it?
#
[Michael_Beckwit
sorry, forgot that pinged you
#
[David_Bryant]
Now I just need to be able to tell the WordPress IndieAuth plugin that I want to use orangemoose.com (my actual home page) for IndieAuth, not orangemoose.com/blog.
#
GWG
I need to build a site that mirrors yours to do testing on that
#
GWG
I never thought about the Indieauth plugin managing a site that is above the root of the WordPress site
#
[Michael_Beckwit
pull requests welcomed?
#
GWG
Always
#
GWG
But IndieAuth has to be secure
#
[David_Bryant]
I'm still learning the internals here but I think it's fine to have the Indieauth plugin still manage all the endpoints via the root of the WordPress site (in orangemoose.com/blog/wp-json) but it needs to be possible for me to declare my endpoints via <link> in orangemoose.com/index.html (which is one level above the WordPress site), have those point at blog/wp-json/* and still work for authenticating as orangemoose.com.
#
GWG
So the standard is highly
#
GWG
I agree. I just never tested the use case
#
[David_Bryant]
Happy to help testing. I have 0% change of submitting a pull request. 🙂
#
Loqi
[dshanske] #151 Support URLs above the site URL on the same site.
#
GWG
I opened an issue
#
[David_Bryant]
Thanks!
#
GWG
I have been trying to do fixes on webmentions though.
#
GWG
So I jump from project to project.
#
[Michael_Beckwit
i know that feeling
#
GWG
Never enough time
RockSteadyTRTL[6 and [tantek] joined the channel
#
[tantek]
GWG++ thanks for clarifying!
#
[tantek]
And capturing the feature request!
#
Loqi
GWG has 89 karma in this channel over the last year (161 in all channels)
#
GWG
[tantek]: I wish I could get everything I wanted to done though.
[xavierroy], [Rose], [prtksxna], [tonz], [renem], [jgmac1106], [grantcodes], Xroot, [Sadik_Shahadu], [snarfed], ben_thatmust, [zach], [frank], [schmarty] and [kimberlyhirsh] joined the channel
#
[kimberlyhirsh]
More webmention/Bridgy backfeed/Syndication Links questions: These replies, backfed from Twitter, consist only of a YouTube link. It would be cool to have them display the video instead of the link. https://kimberlyhirsh.com/2019/07/30/8577/#comments Feature request? Issue? Itch? What bucket should I put this in?
#
[snarfed]
[kimberlyhirsh] probably feature request for some wp plugin or your theme. that twitter reply literally is just the text youtube URL. twitter itself does special internal rendering to display it as an embedded video instead of the text.
#
[snarfed]
if you want similar special URL detection and embed rendering, you'd probably need to look for it in either your theme or the webmention or semantic-linkbacks plugins
#
[kimberlyhirsh]
Thanks, [snarfed]. I figured that it might be a plugin already, not IndieWeb, and found one that seemed promising but haven't tried it yet.
#
[kimberlyhirsh]
Just tried it and it didn't work. Bummer.
#
[snarfed]
feel free to file a bridgy feature request to render these as embeds instead of text. no promises though
#
[snarfed]
(...since i'm not sure if that's actually the right approach)
#
aaronpk
please don't do that in bridgy :)
#
[kimberlyhirsh]
Doesn't seem like Bridgy is the place for it.
#
aaronpk
unless it can be turned on per user
#
[kimberlyhirsh]
Feels more like a plugin thing to me.
#
[snarfed]
hmm. i can make a straw man argument. twitter already renders them as embeds. if i do it for twitter specifically, it's arguably just preserving that behavior
#
[kimberlyhirsh]
I've got plugins that turn @ mentions into Twitter links, for example. Seems like this should operate in a similar fashion.
#
[snarfed]
huh, bridgy already does that ^
#
[snarfed]
oh you probably mean for your own posts, ok
#
[kimberlyhirsh]
Mine does it in the text of my posts, too, yeah.
#
aaronpk
interesting point [snarfed]
#
aaronpk
i think the trick would be making sure the plaintext fallback is still just the URL
jackjamieson joined the channel
#
[kimberlyhirsh]
Maybe for now, a filter that lets shortcodes work in comments, then I manually add a quick embed code.
#
[snarfed]
aaronpk agreed, but not sure how. is there a <noiframe> equivalent of <noscript>? not afaik...?
#
[snarfed]
[kimberlyhirsh] yeah but you'd have to do that manually for every reply. seems not sustainable
#
[kimberlyhirsh]
Not over time, but I don't get a lot of YouTube links as replies right now.
#
aaronpk
i think youtube embeds are iframes
#
aaronpk
but the iframe url is not the same as the main video url
#
[snarfed]
right. so i don't entirely understand how iframe fallback works, and how to specify it
#
[snarfed]
(or what fallback even means for iframes in browsers)
#
[snarfed]
ok, it sounds like fallback standard is to just render the content inside the <iframe>. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
#
[kimberlyhirsh]
Welp shortcode in comments isn't working either. A project for another day! (Because my kid is almost done with preschool for the day.)
#
[snarfed]
[kimberlyhirsh] for now you could just hard code the embed <iframe> HTML
#
[kimberlyhirsh]
Hm, good point.
#
[snarfed]
that's what i do in my posts
#
[kimberlyhirsh]
It says something about the environment I've been working in for a couple years most often (university wordpress rather than my own) that that didn't occur to me.
#
[kimberlyhirsh]
It also took me an embarrassingly long time to realize that a comment on my site was an actual comment on my site and not backfed from elsewhere.
#
[kimberlyhirsh]
As you might expect, hard coding iframe embed is working a treat.
#
[kimberlyhirsh]
I'll probably go back and find that GIF response and hardcode that to display, too.
[tantek] joined the channel
#
[tantek]
[snarfed] +1 to [aaronpk] please don't do this in Bridgy. auto-linking / auto-embedding is something opt-in that should be handled by the rendering CMS whether WordPress or others
#
[snarfed]
i guess. i understand the instinct. out of curiosity though, mind elaborating on why?
#
[snarfed]
esp since twitter itself auto-embeds, and part of the point of backfeed is to faithfully recreate silo representations that users expect when they're authoring replies (etc) there
#
aaronpk
twitter doesn't auto-embed, they generate their own preview
#
[snarfed]
aaronpk click play on the video here, it plays in an embed. https://twitter.com/mobilesworking/status/1156366318901321733
#
[tantek]
right, generating / displaying previews is a per-site preference thing
#
aaronpk
especially with things like youtube, actually using youtube's embed code means enabling all the youtube trackers and cookies
#
aaronpk
yes, after a click, the preview is replaced with a youtube embed
#
[snarfed]
yeah privacy is a different but reasonable argument
#
[tantek]
snarfed, the key is that the people doing the tweeting themselves are only typing/pasting the URL, they are not themselves making the choice to put a preview, embed etc. That's a side-effect, enhancement of what Twitter decides to display in a particular Twitter client
#
aaronpk
even aside from the privacy implications, it'll add a ton of page weight to embed the video
#
[snarfed]
[tantek] understood. twitter users do understand and expect the embedding though, at least if they're not totally new to twitter, so "side effect" understates it a bit
#
[snarfed]
i don't feel strongly, i'm just playing devil's advocate
#
aaronpk
auto-embedding a video when it's something the author of the main post wrote is one thing, but doing it for every comment is another.
#
[tantek]
[snarfed], I understand the power / expectations around "default presentation". It's still presentation
#
aaronpk
imagine if that post had 5 youtube links as comments, it would be ridiculous to embed all 5 youtube players at once
#
[tantek]
this is really indieweb-dev IMO
#
[tantek]
not WordPress specific
[renem] joined the channel
#
GWG
Someone should file a Semantic Linkbacks request for the YouTube embed
#
[tantek]
GWG, YouTube embed is just one of many. see /autoembed /autolink etc.
[jgmac1106], [Rose] and [KevinMarks] joined the channel
#
GWG
[tantek]: WordPress has an embed system we can link into optionally
[grantcodes], [tantek] and [kimberlyhirsh] joined the channel
#
[kimberlyhirsh]
Ooh I'm going to see if that works in comments.
[eddie] and [jgmac1106] joined the channel
#
GWG
I can make it work in comments
#
GWG
With a plugin
[Michael_Beckwit joined the channel
#
[Michael_Beckwit
@GWG is there any plugin(s) that you think could use some good help from a external contributor standpoint? I’m going to have some work-time available to contribute to WP community stuff and was thinking about the indieweb suite of tools
jeremycherfas joined the channel
#
GWG
All of them?
#
GWG
It depends on your passion
#
GWG
There's enough to do
#
GWG
If you need ideas, the GitHub issues on each plugin repo are full of ideas
#
GWG
I put all my enhancements there
[KevinMarks] joined the channel
#
[jgmac1106]
[Michael_Beckwith] could also just make more IndieWeb compatible themes.
#
[Michael_Beckwit
was plotting to scour the GH issues for sure
#
[Michael_Beckwit
not much of a themer these days, at least for from scratch things
#
[jgmac1106]
And gwg working hard on webmention plugins.. Coding together always bettwr than alone
#
[Michael_Beckwit
for some context, 1 day a month, my company allows us to work on whatever we want as long as it benefits the WP community, and it’s just like if we were working on client work 😄
#
[jgmac1106]
... Not really from scratch...just forks or chikd themes with correct mf2
#
[jgmac1106]
That is awesome!!
#
[Michael_Beckwit
it’d be a good chance to see the inner workings of GWG’s mind…er code 😉
#
[jgmac1106]
I think there is a post kind for that. [pfefferle] also gets much of the love on the two plugins
#
GWG
pfefferle is doing a lot of ActivityPub lately