#wordpress 2023-11-07

2023-11-07 UTC
#
Loqi
[preview] [Nick Simson] Bookmarked The Negative Impact of Mobile-First Web Design …Bookmarked The Negative Impact of Mobile-First Web Design on Desktop. Try not to be alarmed by the headline. They key phrase here is content dispersion, an effect of scaling up the mobile ...
#
GWG
[snarfed]: Built into the plugin is a tool to see what it renders I want to play with
#
[snarfed]
ooh, I haven't seen that yet
[nsmsn] joined the channel
#
[nsmsn]
Thanks for inspecting. I had dinner, and getting a toddler ready for bed.
#
Loqi
[preview] nicksimson.com
#
GWG
[snarfed]: Look under tools
#
GWG
Since there is no content, it is using the title as content.
#
GWG
There's an opportunity there
[nsmsn] joined the channel
#
[nsmsn]
GWG: I see the parser under tools > Webmention
#
GWG
That's the test for what it finds
#
[nsmsn]
Which URL do I paste in Source and which goes in Target?
#
GWG
Source is where the Webmention came from,. target where it went
#
[nsmsn]
So if it’s from Bridgy, do I use a brid.gy link?
#
GWG
Correct
[nsmsn] joined the channel
#
[nsmsn]
OK I see the @nazhamid like in JSON, with name and content both with a value of "Bridgy Response"
#
GWG
Now, the question is what should be the behavior
[nsmsn] joined the channel
#
[nsmsn]
Yeah I think I just want it to show up as a like, but not necessarily a comment or reply
#
GWG
Well, that's the thing. The facepile version shows no content. You are rendering it as a comment, so it is showing the content, which has no meaning
#
GWG
In the old days, we'd make it say something like Bob liked this article.
#
GWG
But we left that more to the theming.
#
[nsmsn]
So I need to modify my template.
#
GWG
Or, you could do something like a filter on comment_content that renders it differently.
#
GWG
We used to do that in Semantic Linkbacks
#
[nsmsn]
Is there some example code? Would I have to write a custom plugin or something to do that?
#
GWG
You can add it to the theme
#
GWG
So, you can replace the comment text with anything from the comment.
#
GWG
There might be a case for us to bring code like that into the plugin.
gRegor joined the channel
#
[nsmsn]
That would be simpler for someone like me...I used a directory theme, but I would like to replace it with a theme I build myself someday
#
[nsmsn]
GWG, I know you're no big into Gutenberg, but I'm using a "block theme" here...so my comments is one chunky block pattern in the Single post: Note block template
#
[nsmsn]
My $0.02 is put this kind of functionality into the plugin
#
GWG
[nsmsn]: I'm writing up the issue now
#
Loqi
[preview] [dshanske] #438 Bridgy Webmentions Set Content to Bridgy Response
#
[nsmsn]
The issue looks good...I'm I missing a setting for using the facpile?
#
[nsmsn]
Or is it my theme/template again?
#
GWG
It is in the Webmention settings
[nsmsn] joined the channel
#
[nsmsn]
Does it literally say "facepile"? in wp-admin/admin.php?page=webmention
#
GWG
Separate Webmention Types from Comments.
#
[nsmsn]
OK, I have that checked
#
GWG
If it isn't separating, then the theme is using a block to display comments and ignoring it.
sknebel, tinystoat and sebbu2 joined the channel
#
GWG
Continuing my cleanup of IndieAuth this week. Moved a lot of stuff around to make it a bit cleaner and clearer, which should set up for another tweak to the ticket endpoint code.
[nsmsn] joined the channel
#
[nsmsn]
So Indieblocks does come with a 'facepile' block for templates. I updated my single Post, Note and Like templates and it seems to work: https://nicksimson.com/notes/39f6b6bbc2/ 🤷
#
Loqi
[preview] [Nick Simson] Bookmarked The Negative Impact of Mobile-First Web Design …Bookmarked The Negative Impact of Mobile-First Web Design on Desktop. Try not to be alarmed by the headline. They key phrase here is content dispersion, an effect of scaling up the mobile ...
#
[nsmsn]
Here's an example where the likes and comments separate from the actual replies, which is what I wanted: https://nicksimson.com/likes/1e88a68f6a/
#
Loqi
[preview] [Nick Simson] Likes Withdrawing my workshop from HighEdWeb 2023 by …Likes Withdrawing my workshop from HighEdWeb 2023 by Rachel Cherry. At least two presenters are withdrawing from this year’s HighEdWeb annual conference (which begins Sunday). One of the conf...
[jeremycherfas] joined the channel
#
[jeremycherfas]
Both examples look good to me. Not sure whether it is intentional, but the animation when hovering over the first face image (when there are two) is interesting.
#
[snarfed]
nsmsn you probably want to use the webmention plugin's "Canonical URL" for the links instead of the webmention source URL. more: https://brid.gy/about#appspot . otherwise looks good!
[Joe_Crawford], gRegor, neceve, [jacky] and [nsmsn] joined the channel
#
[nsmsn]
hmmm...where do I find the canonical URL setting in the webmention plugin?
#
[snarfed]
afaik there isn't a setting, the plugin does it automatically when it renders comments and facepiles. if you're using Indieblocks's facepile block (?) to render them instead, I guess that block would have to add support for it? cc GWG
[KevinMarks] joined the channel
#
GWG
[snarfed]: Yes, we have a function that returns the canonical URL. Maybe the block extension predates Webmention 5.0?
[aciccarello] and [nsmsn] joined the channel
#
[nsmsn]
I’ll submit an issue on the Indieblocks plugin GitHub and see how the author responds
[calumryan] joined the channel
#
[snarfed]
could maybe help with storing mf2 data in posts in a structured way, outside content, and then rendering them dynamically?