#wordpress 2018-10-16

2018-10-16 UTC
[jgmac1106], [dave], bradenslen and [asuh] joined the channel
#
[asuh]
I see a universal plugin called Syndication which combines bridgy-publish into semantic-linkbacks + webmentions. The fact that Webmentions is highly dependent on Semantic Linkbacks (that will soon contain Bridgy) sets this up naturally. I’m sure it’s a lot of work to get to this point but this would be a good step to unify all syndication sends and receives.
#
GWG
You do?
#
[asuh]
I’m brainstorming out loud
#
GWG
Bridgy Publish is being deprecated
#
GWG
I plan to fold it into Syndication Links
#
[asuh]
oh right, I left out Syndication Links from the above vision
#
[asuh]
Then that would potentially be four plugins in one that could simplify the plugin ecosystem for getting WordPress up and running
#
GWG
Semantic Linkbacks and Webmentions are under pfefferle.
#
GWG
Syndication Links and Bridgy Publish are mine
#
GWG
But I am planning a rewrite of the functionality, not a merge
#
GWG
For now, I need to fix Post Kinds
#
GWG
Are you having trouble with the new version?
#
GWG
Also, Simple Location has an issue now
#
[asuh]
I haven’t seen any Post Kinds problems but what [jgmac1106] was talking about earlier regarding Post Kinds display by default made sense based on my issue with Webmention
#
[asuh]
I will try to make time and play with the newest Post Kinds version. Anything in particular that needs testing?
#
GWG
[asuh]: Someone was saying old posts weren't rendering correctly on the back or front end
#
jgmac1106
feel free to look at anything I posted after 3.1.1.
#
[asuh]
I’m trying to wrap up my first phase of theme development to get my site mostly Indieweb compatible. I have an idea to create a new repo with pieces of a theme that would need to connect themes to become more Indieweb compatible rather than just relying on homebrew themes we’ve built. But I realize that’s ambitious so I’m still giving it thought
#
GWG
jgmac1106: Is it not working for you too?
#
jgmac1106
as far as I know but I am not looking at my posts through readers or parsers
#
GWG
jgmac1106: So, it is limited to one person so far. Odd
#
GWG
They are reporting that things are showing up as 'Array'
#
GWG
I cannot find anyone else reporting same
#
jgmac1106
I didn’t see issue beyond the two from [johnjohnston] and the other from [mrkndvs]
#
jgmac1106
how would I check that or would I know
#
GWG
I fixed [mrkndvs]'s issue as far as I could tell, but he may still have another one.
#
GWG
jgmac1106: Try to edit an old post.
#
GWG
Now I have this Nominatim problem
#
GWG
But I didn't cause that
#
jgmac1106
no hope I didn’t I just tried to add a token today like you suggested, hope it is coincidence
#
jgmac1106
I would just deprecate simply location until a replacement can be found or people need to just use their phones
#
[asuh]
I edited an old post with Post Kinds 3.1.1 and I don’t see anything out of the ordinary
#
[asuh]
Just added some content into the editor. Something else I might do?
#
[jgmac1106]
then someone might have a plugin conflict or theme conflict. I have heard no problems since 3.1.1. update, and I would have
#
[jgmac1106]
@gwg just make sure any deprecated version of brid.gy publish stills threads nicely with twitter...untilt hey shut down the whole show
#
[jgmac1106]
thats all I would care about
#
GWG
jgmac1106: This is Nominatim. It wasn't using a token. Everything else was.
#
GWG
jgmac1106: What does the phone have to do with it?
#
GWG
Simple Location handles displaying location data
#
GWG
Even without getting it from other things
#
[jgmac1106]
you could just grab GPS coordinates if location services are on
#
GWG
[asuh]: Nothing I know of.
#
GWG
[jgmac1106]: Yes, however, WordPress won't display it without Simple Location
#
[jgmac1106]
so what, the coordinates matter, people can search for now. keep the cruise ship afloat then worry about hiring the band
#
GWG
[jgmac1106]: I'm confused about the reference there
#
GWG
Specifically what you consider keeping it afloat to be?
#
[jgmac1106]
meaning what is the minimum location data you could display to be useful to the reader and capture author intention
#
GWG
[jgmac1106]: I'm going to do some bugfixes on it regardless.
#
GWG
It already doesn't fail gracefully.
#
GWG
And I'll see what Nominatim says
#
[jgmac1106]
the map is really useful, yeah it might just be an email answer
#
GWG
And since Mapquest has a nominatim server that will work with an API key, I'll add support for that
#
GWG
[jgmac1106]: The map isn't broken
#
GWG
That uses Mapbox or Google or Bing
#
GWG
I have three map providers
#
[jgmac1106]
but the data is what is portable...that is awesome...ohh okay, sorry you know I don't know this stuff
#
GWG
Admittedly, it should fail better if none are working
#
GWG
Simple Location uses an extensible provider system
#
GWG
For static maps, it can use Mapbox, Google, or Bing
#
GWG
For reverse geocoding, it can only use Nominatim right now, but I've been meaning to add alternates
#
[asuh]
that’s great that there’s choice
#
GWG
For Weather it only supports OpenStreetMap but I wanted to support DarkSky and Weather Underground
#
GWG
[asuh]: Writing code to convert API output to a standardized format requires some testing
#
GWG
I also have some known bugs in Simple Location I wanted to fix anyway.
#
GWG
so, my plan is to add an alternate provider in the form of one that supports the same API.
#
[jgmac1106]
no problem updating old post
#
GWG
I also want to make it so the lookup for location is done automatically on a Micropub request because Indigenous for Android now does location
#
GWG
So, these are fixes I want for my own use
#
GWG
I also have a few complaints about privacy settings not working to spec
#
GWG
So, I have a good few days of tweaks I can do, and hopefully by then, Nominatim will get back to me
#
[jgmac1106]
that is what I meant by use the phone
#
GWG
[jgmac1106]: Yeah, but without the enhancements, the location will come through, but not the name of the location.
#
[jgmac1106]
is it easier to look up the location on the device with GPS?...I don't swarm, I created shortcuts to places I go alot for checkins and made my hose a website to get over the location thing, I only installed it today to test a check in
#
GWG
I also don't have a display for when there is no address description to show the coordinates
#
GWG
[jgmac1106]: Well, built into Simple Location is the ability to use the browser to get the location
#
GWG
GPS is more accurate, but if you don't use something like Indigenous, the WordPress post UI will just ask the browser where you are
#
[jgmac1106]
I guess what I am wondering does it make more sense for the device with GPS to publish the location and name if using micropub and the browser if using desktop...Probably not possible And this is way important to your site and that is what matters most
#
GWG
[jgmac1106]: Indigenous would have to use an API to look that up though
#
GWG
[jgmac1106]: Android supports it though
#
[jgmac1106]
...and I see your issue from two days ago...maybe you predicted this
#
GWG
Did I?
#
[jgmac1106]
https://github.com/swentel/indigenous-android/issues/131 not related but I went to go see if there were location discussions about maps and GPS
#
Loqi
[dshanske] #131 Location Visibility Appearance
#
Loqi
[dshanske] #133 Feature Request: Reverse Geolocation
#
GWG
[jgmac1106]: I'm the one who requested the feature a few months ago. He implemented it, and it is in Micropub for WordPress(only place it exists right now) but the layout looked a bit weird.
#
GWG
But, you just gave me the idea of Indigenous doing the lookup
#
GWG
Either way, I plan to fix it on the backend.
#
[jgmac1106]
..ohh and my post about the updates to 3.1.1 never went out but I word have heard mistake. Cool good luck happy to test as always
#
GWG
And petermolnar gave me the idea of altitude calculation
#
GWG
[jgmac1106]: I'm looking to find people other than one individual who have that problem.
#
GWG
I'm not sure what makes him different.
#
GWG
Other than running PHP 5.3, when I recommend 5.4 or greater
#
[jgmac1106]
its wordpress,
#
GWG
Yes?
[tantek], [kevinmarks], [dave], [Rose], gRegorLove_ and [pfefferle] joined the channel
#
[pfefferle]
Good morning
#
Loqi
morning!
[Vincent], gRegorLove_ and bradenslen joined the channel
#
jgmac1106
good morning
#
Loqi
guten morgen
#
GWG
Morning
#
jgmac1106
awesome Alan Levine @cogdog, still using the old Aperture plugin not @aaronpk’s new one. Small world
[jgmac1106] and [eddie] joined the channel
#
GWG
Still mystified by one person having problems with the new Post Kinds no one else can reproduce. It's little cases like that I can never figure out
[kevinmarks] and [Rose] joined the channel
#
[Rose]
I hate to say it, but is it possible that they're imagining it?
#
GWG
How do you imagine an array to string conversion error?
#
[Rose]
Just checking
#
[Rose]
That sounds like something not imaginable, but often people say "this causes X error" and it's actually Y
#
GWG
But when they roll back to the previous version it works
#
[Rose]
Good sign it's really your issue then 🙂
#
GWG
I am thinking it is some sort of bizarre interaction
#
[Rose]
That sounds very plausible
#
petermolnar
GWG maybe colliding ordering in hooks from other plugins
#
GWG
petermolnar, the code stores mf2 in post meta. And converts to jf2 for display.. eliminating the single property arrays, then converts back for storage.
#
GWG
So, something is interfering with that
#
GWG
I have a weird idea
#
GWG
The function that converts is called mf2_to_jf2. Wonder if someone overrode the function name
[jgmac1106] and [pfefferle] joined the channel
#
[pfefferle]
mf2-feed is it not
#
[jgmac1106]
@gwg [johnjohnston] has done a ton of theme customization and uses different plugins
#
skippy
are the WP indieweb plugins multi-site compatible? I have a multi-site setup, and am considering adding the indieweb bits to just one of the sites
[johnjohnston] joined the channel
#
[johnjohnston]
@gwg the only places i can find mf2_tojf2 in the files class-mf2-post.php
#
[johnjohnston]
kind-functions.php both part of post kinds. So I think not that.
#
[pfefferle]
we never really checked… unit tests are also done in MU, but that alone is not really a verification
#
[pfefferle]
GWG [johnjohnston] perhaps different versions of the MF2 parser?
#
[johnjohnston]
Where would I find that?
#
[pfefferle]
[johnjohnston] can you provide a list of the plugins you use?
#
[pfefferle]
GWG can you implement some logging for that? so that we can get a dump of the data that breaks the plugin?
[Vincent] joined the channel
#
[pfefferle]
GWG perhaps some timeouts, where the parse-this runs into a timeout and thats why the data is broken
#
[pfefferle]
[johnjohnston] can you try to edit the timeout in the `/includes/parse-this/includes/class-parse-this.php` in line 97
#
[pfefferle]
try 100 instead
#
[johnjohnston]
[pfefferle] I can’t but I’ll need to upgrade the plugin again,. A few minutes I think.
#
[pfefferle]
ok, then GWG can perhaps try to change the limits to be more generous
#
[pfefferle]
[johnjohnston] is it a specific URL that does not work?
#
[pfefferle]
or is it more like a general problem
#
[johnjohnston]
[pfefferle] I’ve upgraded and looking at line 97 it is an comment
#
[pfefferle]
can you search for timeout?
#
[johnjohnston]
[pfefferle] no, when I update the info about the post is replace by Replied to by an authoran author
#
[pfefferle]
can you provide an URL that breaks the plugin?
#
[johnjohnston]
Found the time out, sorry looking in wrong file.
#
[johnjohnston]
didn’t fix things, [pfefferle] you can see a bunch of error on the post on this page: http://johnjohnston.info/blog/category/reactions/
#
[pfefferle]
but can you give me one of these links?
#
[johnjohnston]
[pfefferle] do you mean the in in the “Response properties”? I’ll need to role back to 3.0.9 to get ’em I posted a screenshot of what I see in the editor https://github.com/dshanske/indieweb-post-kinds/issues/231
#
Loqi
[troutcolor] #231 3.1.1 text Array in quotes and Name
#
[pfefferle]
!tell GWG I am getting a “Notice: Trying to get property ‘term_id’ of non-object in /var/www/html/wp-content/plugins/indieweb-post-kinds/includes/class-kind-taxonomy.php on line 290” if I try to post a new kind without saving the settings first
#
Loqi
Ok, I'll tell them that when I see them next
#
[pfefferle]
[johnjohnston] ok, it does not seem to be a timeout issue… what PHP version do you have on your server?
#
[johnjohnston]
[pfefferle] 5.3.19 I posted info from phpinfo in the issue on git
#
[johnjohnston]
[pfefferle] if that will help
#
[pfefferle]
oh sorry, will read the issue
#
[johnjohnston]
[pfefferle] no
#
[johnjohnston]
[pfefferle] no problem appreciate all the help coming this way. [dshanske] has account on the site to check things out
#
[pfefferle]
the php-mf2 lib says, it needs php5.4 https://github.com/microformats/php-mf2#v030
#
Loqi
[microformats] php-mf2: php-mf2 is a pure, generic microformats-2 parser for PHP. It makes HTML as easy to consume as JSON.
#
[pfefferle]
thats why I require it for Semantic-Linkbacks: https://github.com/pfefferle/wordpress-semantic-linkbacks
#
Loqi
[pfefferle] wordpress-semantic-linkbacks: More meaningfull linkbacks
#
[pfefferle]
might be the issue
#
[pfefferle]
GWG excludes the parse this folder from the check I think… <exclude-pattern>*/includes/parse-this/*</exclude-pattern>
#
Loqi
[pfefferle] @dshanske the php-mf2 library requires PHP 5.4 (at least the readme says so: https://github.com/microformats/php-mf2#v030) You mentioned the PHPCS compatibility checker, but it seems that you exclude parse-this from the check and the php-mf2 lib i...
#
[pfefferle]
[johnjohnston] sorry, but it might be that your PHP version is too old
#
[johnjohnston]
[pfefferle] thanks. I guess I might stay on the 3.0.9 version of the plugin for now.
[Rose], sebsel and jgmac1106_ joined the channel
#
skippy
is growing tired of maintaining his own stack, and is sadly considering migrating all his content back into WP.
[chegalabonga] joined the channel
#
[chegalabonga]
Can someone pls clear up the distinction between Ostatus and ActivityPub pls?
#
[chegalabonga]
I'm looking at trying to contribute to a plugin to allow to follow other people from a WordPress blog. But dunno where to start to be honest.
#
[chegalabonga]
😕
#
[chegalabonga]
I love the idea of having a mastodon, but I'd rather my identity be linked to my blog as opposed to mastodon.myblog...
#
[pfefferle]
hmmm, hard to tell in a few sentences
#
[pfefferle]
OStatus is working with atom/rss feeds and PubSubHubbub/WebSub
#
[pfefferle]
ActivityPub is sending a lot of activities
#
[pfefferle]
for following, subscribing, new posts, …
#
[chegalabonga]
ahh
#
[pfefferle]
so OStatus is simple because in the end you have to interpret some meta-data (via webfinger for example) and subscribe to feeds via pubsubhubbub
#
[pfefferle]
for ActivityPub you have to implement an inbox and an outbox and send and retrieve a lot of json-activities for every activity on both sides
#
[chegalabonga]
right ok
jgmac1106_ joined the channel
#
[chegalabonga]
ah cool thanks!
#
[pfefferle]
signing and verifying is nearly finished in the activitypub plugin for wordpress
#
[chegalabonga]
I think my best bet for now is to continue using the WordPress plugins as are, and dig around in them to learn exactly how they are working. I'm new to this whole thing and is overwhelming
#
[chegalabonga]
ooh nice [pfefferle]
#
[pfefferle]
subscribing a wordpress blog from mastodon is also working on my test site (pfefferle.org)
#
[chegalabonga]
so is the ActivityPub plugin usable for anything besides what the ostatus one does for Mastodon?
#
[chegalabonga]
Yer I had subs from mastodon to blog with ostatus
#
[chegalabonga]
works great
#
[pfefferle]
in the end they both do the same
#
[pfefferle]
but with different specs
#
[chegalabonga]
So following could be done with ostatus too?
#
[pfefferle]
but OStatus was way easier to implement
#
[chegalabonga]
ah k
#
[chegalabonga]
nooice
#
[pfefferle]
activitypub is kind of OStatus 2.0
#
[chegalabonga]
right ok
#
[pfefferle]
from the usecase perspective
#
[pfefferle]
not technical
sebsel, [tantek], jackjamieson, [Rose], [jgmac1106] and [pfefferle] joined the channel
#
GWG
pfefferle, Parse This has its own repo and checks phpcs separately
#
Loqi
GWG: [pfefferle] left you a message 4 hours, 23 minutes ago: I am getting a “Notice: Trying to get property ‘term_id’ of non-object in /var/www/html/wp-content/plugins/indieweb-post-kinds/includes/class-kind-taxonomy.php on line 290” if I try to post a new kind without saving the settings first
#
GWG
I definitely need to handle initialization better
#
GWG
But I suppose it could be php5.4, but the old version had php-mf2 so likely not that specifically
jgmac1106_, [cleverdevil] and [asuh] joined the channel
#
[asuh]
Post Kind “Listen” vs “Jam” text is nuanced: “Listened” vs “Listened to”. I think they both should be “Listened to” to make a more complete thought, otherwise “Listen” Post Kind says something like “Listened [album] by [author]” which reads a little strangely.
#
[asuh]
Another thing I’m now contemplating is the use of Post Kinds with only Posts vs using them for Custom Post Types. Notes, Articles, Replies, Issues, these all make sense as standard WordPress Post types. I’m inclined to think that Listen, Jam and Audio could go under a “Music” CPT but it adds complexity to the plugin as well as the Dashboard Admin Menu. It’s an interesting thing to think about
bradenslen and dougbeal|mb1 joined the channel
#
[jgmac1106]
@asuh...yes I think that is a good approach. @gwg concern is with those custom post types if someone switched a theme the correct mf2 would be gone forever, thus he chose the taxonomy approach
#
[asuh]
yeah, the mf2 integration into themes is a hard problem to solve
#
[jgmac1106]
in terms of post types included in the post-kind plug-in don't worry about all the bespoke types just the one's on top here: https://indieweb.org/posts#Kinds_of_Posts
#
[jgmac1106]
though I would argue that there are enough examples of bookmarks, checkin, event, and review to nail down formats for post type discovery
#
[asuh]
well, in playing around with “Listen” vs “Jam” above, I’m thinking about my own usage of Last.fm to scrobble music. I am not interested to create posts for every song or album I listen to like Last.fm does. I’d much rather they live in a CPT that is not associated with the main feed
#
[asuh]
and if I was to import all my Last.fm data, it would be years of Posts to create that I’d much rather contain in one place
jaggendaggen and [pfefferle] joined the channel
#
[pfefferle]
GWG I posted all I found out in the issue... php-mf2 seems to require php5.4 so parse this and post kinds should require that too
[eddie] joined the channel
#
[jgmac1106]
[asuh] jam, based on wiki, is for "this my jam" as in all time. Only a few whereas I use listen for podcast, or show reviews
#
[jgmac1106]
Read confuses people bc of homographs, but as a teacher read, watch, and listen were great for tracking activity
[Rose] and [eddie] joined the channel
#
jgmac1106
I could easily see feeds for read, write, listen for all my students in a teacher dashboard (that I haven’t even scoped out yet)?
skippy left the channel
#
GWG
I think I have a grammar issue about listens in Semantic Linkbacks
#
GWG
asuh, that's something I am considering for citations
#
GWG
Living in a separate post type used like the old link manager
[schmarty], [tantek] and [eddie] joined the channel