#wordpress 2022-12-26

2022-12-26 UTC
#
[arush]
Found the problem. The thing needed is post-status=draft, not status=draft
doug_c_im, ben_thatmustbeme, RasAlGhoul_, jsbach, [aciccarello], fef, jsbach_, [jamietanna], RasAlGhoul, j12t and [ggirelli] joined the channel
#
[snarfed]2
GWG just FYI I got an odd Bridgy micropub request from Synd Links overnight, it had the syndication property as a dict instead of a list: “syndication”: {“1": “https://micro.blog/zsbenke/15450788“}
#
Loqi
[preview] [zsbenke] Tweaking workflows decoding.io
#
GWG
[snarfed]2: Should I strip the syndication property? I just have it extract every mf2 property stored.
#
[snarfed]2
mf2 properties should all be lists, not dicts, right?
#
GWG
I think it might be the PHP array to json conversion
#
GWG
Because it should just be what you call a list.
#
GWG
[snarfed]2: I just noticed, you wrote the code for the conversion
#
[snarfed]2
lol 🙈
#
GWG
I borrowed it from the Micropub plugin.
#
GWG
That's why I didn't test it
#
GWG
But let me see what I can do
#
GWG
I can run it through array_values to reindex, I guess
#
Zegnat
That seems like a weird bug, and is not how json_encode for PHP works at all. Unless, GWG, you have the JSON_FORCE_OBJECT flag in there somewhere?
#
GWG
Nope
#
Zegnat
Then I have no idea how you get to that JSON output ... unless your input is just not an array in the first place
doug_c_im, [manton], RasAlGhoul_, jeremycherfas and [iambismark] joined the channel