#wordpress 2017-12-30

2017-12-30 UTC
sebsel joined the channel
#
wagle
query-monitor plugin observes that "remove_post_formats" dooesnt exist in
#
wagle
./wp-content/plugins/indieweb-post-kinds/includes/class-kind-config.php: add_action( 'after_setup_theme', array( 'Kind_Config', 'remove_post_formats' ), 11 );
#
GWG
Yes?
#
GWG
I thought I got rid of that
#
wagle
it thinksit has the most up to date version, but it might be confused
#
GWG
It's gone now
#
GWG
Will push in the next version
#
GWG
There used to be a menu option to remove post formats, but I decided that people can make that decision for themselves, since some people clearly wanted both
#
wagle
cool.. I now have a nice debugging tool to give a spin
#
wagle
but need to update a plugin
#
wagle
for the "10 minute timeout" problem
#
GWG
That shouldn't have anything to do with it though. That's just some old code that wasn't doing anything
#
wagle
yeah.. it just showed up in red oon the huge report quuery-monitor produced.. thought i'd mention it
#
GWG
Definitely worth mentioning
gRegorLove and tantek joined the channel
#
gRegorLove
On http://odat.xyz/2017/12/30/90/, is the #90 title something the plugin adds?
#
Loqi
[camb] #90
CamB joined the channel
#
CamB
Moved here now. :)
#
GWG
No. It wouldn't add a title. That is likely the default the system has
#
gRegorLove
Meaning WordPress adds the post number as the title?
#
GWG
Yes
#
CamB
Do I understand correclty that post kinds ads microformats2 tags for all the options?
#
GWG
CamB: Correct
#
CamB
F@#!*& awesome :)
#
GWG
CamB: How is it working for you?
#
CamB
GWG: I love it! Next I would need/want an option for "question" and "product".
#
CamB
but If that doesn't yet exist I will start looking into how to add that those.
#
GWG
CamB: What is a question?
#
GWG
What is a product?
#
Loqi
It looks like we don't have a page for "product" yet. Would you like to create it? (Or just say "product is ____", a sentence describing the term)
#
GWG
What is a question?
#
Loqi
question is a post type for soliciting answer replies, which are then typically up/down voted by others and then displayed underneath the question post ordered by highest positive vote count rather than time ordered https://indieweb.org/question
#
Loqi
[dshanske] #142 Add support for Questions
#
GWG
Still don't know what a product is
#
CamB
GWG: A "question" would be like posting a question on your own site (instead of stackexchange) and waiting for webreplies as answers. I don't know if there is already a tag for it.
#
GWG
CamB: No, there is not a kind for it, but I just opened an issue for it
#
GWG
Product is the one we don't have a page for.
#
CamB
GWG: You're right on it. Cool
#
GWG
Oopps
#
GWG
Umm...if you could define that, I should fix that as it now goes..
#
GWG
What is a product?
#
Loqi
Product is the one we don't have a page for https://indieweb.org/Product
#
CamB
Product would be anything for sale with a price
#
CamB
A product could also be a service
#
GWG
Interesting
#
GWG
So, selling things on your website?
#
GWG
Do you have an example of that on another site?
#
GWG
We have talked about reviews of products, but not selling them
#
CamB
I don't have an example with microformats2 for this. But yes. Selling stuff on my site instead of a silo while allowing decentralized and somewhat censorship resistant comments.
#
CamB
*resistant reviews i mean
#
GWG
CamB: It doesn't have to be an example of a microformat. Any use of the type
#
GWG
Post Kinds mostly focuses on types of h-entry, which is why h-event, h-review, and h-product aren't available now.
#
GWG
They might be better in WordPress as a Custom Post Type as opposed to a Kind.
#
GWG
But worth doing at some point.
#
CamB
I'm a bit confused by the difference between the "format" options and the "kinds" I can set format to image, but kind to video. How does that work out?
#
CamB
Sorry it's all new to me.
#
GWG
CamB: Post Kinds are meant to replace Post Formats
#
GWG
No need to be sorry, how do you know without asking.
#
CamB
Should I always leave the format as standard then and only use the Kinds options?
#
GWG
For now, yes.
#
CamB
Ok. Cool. Love it. :)
#
GWG
Any suggestions are always welcome
#
CamB
Will do. I will be adding post kinds as a recommended tool to my project Metanet https://github.com/Cam-B/MetaNet
#
Loqi
[Cam-B] MetaNet: Decentralized Forums and Commenting
#
CamB
The project barely started. There's not really anything there yet. Just an idea.
#
GWG
Everything starts as an idea
#
GWG
CamB: Anything else I can help with?
#
CamB
GWG: This was a great start on the Wordpress. Thanks! I am reading up as much as I can about Indieweb.
#
CamB
Also just wikified :) https://indieweb.org/User:Odat.xyz
#
CamB
Could you recommend any websearch options for microformats? How can I search for only posts using a specific "kind" or "tag"?
#
GWG
odat.xyk/kind/reply
#
GWG
There's an archive
#
CamB
https://odat.xyz/kind/reply is a 404. What should be there?
tantek joined the channel
#
CamB
GWG: And do you mean this archive?
#
Loqi
Indie Map is a public IndieWeb social graph and dataset. 2300 sites, 5.7M pages, 380GB HTML + mf2. Social graph API and interactive ma...
#
GWG
Go to Settings->Permalink and Save
#
CamB
GWG: I don't understand.
#
GWG
If you go to your settings, and just save the permalink page without modifying it, it should allow /kind/reply to work
#
CamB
GWG: Oh. Git it! :)
tantek joined the channel
#
CamB
*got it
#
GWG
CamB: Making a note to do that automatically
#
CamB
Is the sempress theme really required? I'm unable to remove the menu and widgets on that theme for some reason. Also there are #numbers appearing in my pages content now.
#
GWG
CamB: It's a Microformats2 capable theme. You can use any theme, but not all of them support microformats2
#
GWG
I don't use SemPress myself
#
GWG
I use a modded version of the 2016 theme
#
CamB
before I was using the 2016 also.
#
GWG
You want to have a look at my fork?
#
CamB
would love too
#
Loqi
[dshanske] twentysixteen-indieweb: Indieweb Fork of WordPress Twenty Sixteen Theme
#
CamB
Installed :) Very awesome!
tantek, [kevinmarks], [eddie], [miklb] and gRegorLove joined the channel
#
gRegorLove
I'm updating a friend's WP install and am going to try out installing the IndieWeb plugins for the first time. Will make notes if anything stands out. :)
#
GWG
gRegorLove: I think we've gotten a lot better
#
gRegorLove
Using a non-indieweb theme, too (Hemingway), so will see how the microformats are
#
GWG
The h-as thing is gone, by the way
#
gRegorLove
Yeah, I saw that! Awesome.
#
GWG
gRegorLove: See, your notes can be most helpful
#
gRegorLove
And if I can't be helpful, I try to be funny
[manton] joined the channel
#
GWG
Funny is good
[kevinmarks] joined the channel
#
gRegorLove
What's the first plugin someone should install? IndieWeb Plugin or Webmention? Or another one?
#
GWG
The Indieweb Plugin
#
gRegorLove
I wonder if focusing on the /IndieMark levels is a good idea on that page. It's another new term to wrap your mind around, especially if you're brand new to indieweb.
#
gRegorLove
Maybe use-cases like "I want to be able to post replies to other sites on my own site"
#
gRegorLove
installs IndieWeb Plugin
#
gRegorLove
What is IndieWeb Plugin?
#
Loqi
It looks like we don't have a page for "IndieWeb Plugin" yet. Would you like to create it? (Or just say "IndieWeb Plugin is ____", a sentence describing the term)
#
gRegorLove
I thought we had a wiki page for that
#
gRegorLove
What is WordPress IndieWeb Plugin?
#
Loqi
It looks like we don't have a page for "WordPress IndieWeb Plugin" yet. Would you like to create it? (Or just say "WordPress IndieWeb Plugin is ____", a sentence describing the term)
#
gregorlove.com
created /WordPress_IndieWeb_Plugin (+298) "prompted by gRegorLove"
(view diff)
tantek joined the channel
#
gRegorLove
GWG: Installed Webmention + Semantic Linkbacks from the IndieWeb Plugin. Don't see a webmention endpoint advertised. Is that because it's a different theme (Hemingway)?
#
gRegorLove
How do I add the endpoint?
#
gRegorLove
reviews Getting_Started_on_WordPress#Webmentions
#
gRegorLove
Ah, didn't have link notifications from other blogs enabled.
#
gRegorLove
Wait. It was enabled.
#
Loqi
[gRegor Morrill] IndieWeb WordPress Feedback
#
gRegorLove
Oops, apparently missed the Activate step on those last two. That explains the missing endpoint. Working now. :)
#
GWG
Gregorlove, sorry, I stepped away
#
gRegorLove
No worries
#
GWG
A few of the things you mentioned are on my list
#
Loqi
gRegor Morrill
#
gRegorLove
Hmm, after approving the webmention I sent a second webmention (a like) and noticed in comment moderation it says "0 approved" beside the second webmention.
#
gRegorLove
Perhaps if WP could track correctly the number of approved comments, not as many would get caught in spam.
#
gRegorLove
*approved webmentions
#
GWG
Open some issues if you can with information on the right plugin.
#
GWG
I periodically do some gardening
#
GWG
As you noticed
[miklb] joined the channel
#
[miklb]
I think its still a function you add to your theme, but there is a way to automatically unspam webmentions
#
GWG
miklb, there should be better ways
#
[miklb]
agreed
#
gRegorLove
Yeah, I'm familiar with that. Just noticed the "0 approved" thing
#
gRegorLove
WP is probably using email address to track those
#
gRegorLove
So subsequent wm from the same domain aren't tracked in that count
#
[miklb]
ah, I follow now
#
GWG
Approving on domain is possible, but as someone pointed out, Twitter is a domain, and you might not want to approve all bridgy webmentions from there
#
[miklb]
since bridgy returns the full Twitter object, in theory we could parse the profile url and store that?
#
GWG
[miklb]: When publishing, yes.
#
GWG
But this is backfeed.
#
gRegorLove
I hadn't set up Bridgy yet, just indieweb-to-indieweb webmentions
#
GWG
gRegorLove: We're discussing methodology though
#
GWG
I wrote the code to whitelist domains
#
gRegorLove
That might be the easier case to work with, then twitter as a special case.
#
gRegorLove
E.g. if I approve a wm from david.shanske.com, it's likely I mean to approve any future wm as well
#
GWG
gRegorLove: Agreed, but I was trying to think of a solution for multi-user domains, not just single user ones.
#
GWG
And a way to explain the difference in the interface.
#
GWG
I suppose whitelists could be of the author url plus the domain
#
GWG
Two factors required
#
gRegorLove
Ah. Does WP core differentiate spam comments among users?
#
GWG
gRegorLove: Spam handling is pluggable
#
gRegorLove
I mean: if you have WP User A and B, then User X comments on each of their posts, do A&B have to approve the comment, or does approving the first one mean subsequent comments from X aren't marked as spam?
#
gRegorLove
Core WP functionality question, aside from add'l whitelists plugins might add
#
gRegorLove
Also, does multi-user domain mean multiple users (authors) on a single blog, or multiple WP blogs running off one WP install?
#
[miklb]
that’s a sitewide setting I believe. Choice of all must be manually approved, or comment author must have one approved comment
#
gRegorLove
That probably gets at the distinction in my first question more easily.
#
gRegorLove
[miklb]: Makes sense. That's what I was thinking.
#
[miklb]
Settings->Discussion
#
gRegorLove
So there's no special handling for single-author vs multi-author blogs.
#
GWG
Pfefferle pointed out the authorship in a comment is too easily spoofed
#
GWG
I was just suggesting that webmention build in checking author and domain, not just author
#
[miklb]
that’s not a bad idea GWG at least an interim step towards Vouch I’m guessing
#
GWG
Because it uses author email
#
GWG
And yes
#
gRegorLove
Not sure I understand the spoofing concern. You approve a wm from gregorlove.com, then miklb tries to take advantage by crafting a comment on his site listing my domain as the author?
#
GWG
Yes
#
gRegorLove
checks the WP comments schema
#
gRegorLove
Hmm, I have comment_whitelist on, so I'd expect subsequent wm to pass based on: https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/comment.php#L119
#
[miklb]
replies aren’t classified as webmentions in the db which throws a wrench into that
#
gRegorLove
Hm, my example here is
#
gRegorLove
Ah, I think I see the problem
#
gRegorLove
$email will be empty, so it automatically returns false
#
gRegorLove
Not hookable, either :/
#
gRegorLove
Otherwise, as long as the comment_type isn't trackback or pingback, and the author name and email aren't empty, it should respect previously approved wm
#
gRegorLove
How's the validation on comment_author_email? Store the sender's domain there? :)
#
GWG
We store the email if on the person's site