#dev 2018-01-26

2018-01-26 UTC
EmreSokullu joined the channel
#
[eddie]
Micro.blog/feeds/eddiehinkle.json
#
[eddie]
Did you do a timeline feed or a profile feed?
#
[eddie]
Hmm interesting.
EmreSokullu, [colinwalker], [kevinmarks], snarfed, [miklb], [cleverdevil], tantek, KartikPrabhu and [keithjgrant] joined the channel
#
[keithjgrant]
anybody on that's familiar with the mp-syndicate-to field when posting to a MP endpoint?
tantek and [miklb] joined the channel
#
[miklb]
a tad beyond having read the docs
#
[keithjgrant]
do you know if the MP client is supposed to post an array of the syndicate UID strings, or an array of the full syndicate objects?
#
[miklb]
I do not. sorry
#
[keithjgrant]
well, I think that the problem is my MP server, not Omnibear. I'll keep this in a branch until someone can test a diff endpoint
#
[miklb]
I know to create a syndicate-to all you need is uid & name
[eddie] joined the channel
#
[eddie]
keithjgrant I have an array of syndication objects inside of my server. So after passing that array through the micropub config stage, when I recieve the UID’s back in the micropub request, I match the UID up to my full syndication objects
#
[keithjgrant]
So the request (to post an entry) only needs to contain an array of the UIDs?
#
[eddie]
exactly.
eli_oat joined the channel
#
[eddie]
The name is just for making the UI prettier
#
[keithjgrant]
Is it as 'mp-syndicate-to'?
#
[miklb]
human readable of the uid right?
#
[miklb]
I believe mp- has been deprecated
#
[eddie]
mp-syndicate-to is correct
#
[eddie]
the micropub config is “syndicate-to”, but the micropub value is mp-syndicate-to.
#
[keithjgrant]
I wonder if voxpelli's app uses syndicate-to. It omits the mp- in mp-slug
#
[eddie]
syndicate-to is a previously named version, so if it omits that in mp-slug it probably omits it no syndicate-to as well
#
[eddie]
Quill allows for a legacy option for servers that need that value
#
[keithjgrant]
Yeah, I made mp-slug configurable. Guess I'll do the same for this
#
[eddie]
Yeah, I would think keeping mp-slug and mp-syndicate-to in balance is good
renem and tantek joined the channel
#
[miklb]
thanks for the explanations. I now know a little more than a tad beyond the docs
#
[miklb]
eddie++
#
Loqi
eddie has 11 karma in this channel (29 overall)
#
[keithjgrant]
Indeed. eddie++
#
Loqi
eddie has 12 karma in this channel (30 overall)
#
[eddie]
Happy to help 😁
EmreSokullu, [miklb], tantek, EmreSoku_, loicm, curve25519, cweiske, jeremycherfas and j12t joined the channel
#
jeremycherfas
Trying to send a webmention to Known; json_encode() escapes the / in the URL; Known returns an error "That doesn't look like a valid URL.","message_type":"alert-danger"
#
jeremycherfas
Is there another way to create the json payload?
#
Zegnat
add JSON_UNESCAPED_SLASHES as second argument to your json_encode
#
Zegnat
Although it does sound like a Known bug if they do not decode them :/ Not sure what would be going on there
#
cweiske
but webmentions are not json
#
cweiske
jeremycherfas,
#
cweiske
The sender must post x-www-form-urlencoded [HTML5] source and target parameters to the Webmention endpoint,
#
jeremycherfas
Sorry cweiske they are not webmentions. My mistake. I am just trying to post to Known via crul.
#
cweiske
what is that url that known complains about?
#
cweiske
known should not care at all about the escaping in the json, since it decodes it anyway
#
cweiske
and our json?
#
jeremycherfas
"{"link":"https://www.tbray.org/ongoing/When/201x/2017/09/03/Murder-chez-Hitler","description":"PESOS+from+%3Ca+href%3D%27https%3A%2F%2Fwww.reading.am%2Fp%2F4Njk%2Fhttps%3A%2F%2Fwww.tbray.org%2Fongoing%2FWhen%2F201x%2F2017%2F09%2F03%2FMurder-chez-Hitler%27%3Ereading.am%3C%2Fa%3E"}"
#
cweiske
is that from your shell?
#
jeremycherfas
$known['body'] = json_encode($mybody, JSON_UNESCAPED_SLASHES); gives the same error
#
jeremycherfas
From the php script I am working on, yes.
#
cweiske
"{"... looks strange
#
jeremycherfas
Maybe because I produce it with var_dump($known['body']); ?
#
cweiske
the json is fine
#
cweiske
can you pastebin your script?
#
Zegnat
Ha, looks like you broke the log display, jeremycherfas: https://chat.indieweb.org/dev/2018-01-26/1516959199028900 :D
#
cweiske
that's what you get when auto-linking code runs over code
#
cweiske
so you don't want to use micropub?
#
jeremycherfas
Intention is to test with hard-coded variables, before doing with the variable variables, IYSWIM
#
jeremycherfas
I thought I WAS using micropub, by sending to a specific Known endpoint.
#
jeremycherfas
And oops, my credentials are in there.
#
Zegnat
Better regenerate your API key now
#
Zegnat
If this is for the live site and not a local one, that is
#
jeremycherfas
It is for the live site.
#
cweiske
this is not micropub.
#
Zegnat
You seem to be using some Known-specific endpoint to POST to, not Known’s Micropub endpoint. So the API is different. In Micropub you would expect to see a `like-of` property in the body, where you are sending a `link` property.
#
Zegnat
Nothing wrong with using the API offered by the CMS you are using, of course :)
#
cweiske
you could use shpub to send a like, and use shpub's --debug feature to get the complete curl shell command
#
jeremycherfas
Let me understand this better.
#
cweiske
$ ./bin/shpub.php --debug like cweiske.de
#
cweiske
curl -X POST -H 'User-Agent: shpub' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer deadbeef' -d 'h=entry' -d 'like-of=http://cweiske.de' 'https://commentpara.de/micropub.php'
#
jeremycherfas
Known says that every endpoint accepts POSTs, so I was sending to the Known Post url.
#
jeremycherfas
To create a post that is a PESOS of something I marked at reading.am
#
Zegnat
Do you have a link to that Known documentation, jeremycherfas?
#
jeremycherfas
You're suggesting that instead I send the POST to shpub?
#
jeremycherfas
Hang on zegnat, I'll find it
#
cweiske
shpub is a command line micropub client
#
Loqi
[Marcus Povey] Using the Known API
#
Zegnat
jeremycherfas, cweiske is suggesting you use Micropub instead, since Known should support that. shpub has a handy debug option that will show you the exact cURL command it does. So if you can get posting to work with shpub, it is super easy to get the cURL command and use that wherever you want.
#
cweiske
thanks for the summary
#
jeremycherfas
OK. I'll try that route from http://cweiske.de/shpub.htm
#
Zegnat
That is interesting about the Known API. It does seem like you should just be able to post whatever you usually post through the admin form.
#
Zegnat
You are sure the fields are supposed to be called link and description?
#
jeremycherfas
Well, it would be, if it worked. I have tested other things, and they worked, but then I got into this specific project and it has not gone well.
#
jeremycherfas
Pretty much, yes. You get that by doing a GET ihntstead of a POST
#
jeremycherfas
Cweiske is there a preferred place to extract the phar file?
#
Zegnat
You don’t have to extract the phar file
#
Zegnat
You can execute phar files with php directly.
#
Zegnat
Otherwise, could you try changing “link” to “like-of” in your existing PHP script, jeremycherfas?
#
Zegnat
That is what the Like plugin seems to be looking for: https://github.com/idno/Known/blob/master/IdnoPlugins/Like/Like.php#L131
#
cweiske
./shpub.phar like http://url/
#
cweiske
before: chmod +x shpub.phar
#
Loqi
[Christian Weiske] Working with .phar files
#
jeremycherfas
I'll try changing as you suggest first zegnat
#
Loqi
[Jeremy Cherfas] ongoing by Tim Bray · Murder at Adolf’s Cottage
#
jeremycherfas
I wonder whether bookmark-of would be better.
#
Zegnat
Has someone made a read plugin for Known yet? That would be even better. Although hitting 👍 on reading.am does sound like a like to me.
#
jeremycherfas
To be honest, I'm as happy with a bookmark as with a like (and that is a whole 'nother can of worms that many people are working on) but now it would be good to improve the presentation of the body of the post
#
jeremycherfas
That string is not exactly helpful.
#
Zegnat
As a general rule though, jeremycherfas, if you are going to work with the Known API instead of Micropub: check the source for the post type (in the IdnoPlugins folder, probably) and look for the `saveDataFromInput` method. There you will find method calls like `getInput('inreplyto')` (for Status) and `getInput('like-of')` (for Like). That way you
#
Zegnat
know what properties you can send to the endpoint.
#
jeremycherfas
What is REALLY weird is what Known seems to be doing with the HTML in the body of the post.
#
Loqi
It looks like we don't have a page for "REALLY weird is what Known seems to be doing with the HTML in the body of the post." yet. Would you like to create it? (Or just say "REALLY weird is what Known seems to be doing with the HTML in the body of the post. is ____", a sentence describing the term)
#
Loqi
[gRegor Morrill] IndieWeb WordPress Feedback
#
jeremycherfas
But the HTML is <p>PESOS from <a href="https://www.reading.am/p/4Uny/https://gregorlove.com/2017/12/indieweb-wordpress-feedback/">reading.am</a></p>
#
jeremycherfas
And that HTML out do display as I intend.
#
jeremycherfas
It must be something to do with the nested Hhttps, I think
z2xy joined the channel
#
cweiske
jeremycherfas, you don't need that working-with-phar-files article.
#
cweiske
the downloaded shpub.phar can be used like any other shell script or executable
#
jeremycherfas
No, I don't think I do :)
#
jeremycherfas
What I would really like to understand is whether in general it would be better to work with the Known API or with something like shpub.
#
jeremycherfas
I started with the Known API because that seemed the most obvious. But not I am wondering.
#
Zegnat
I would say it is better to work with Micropub, as that means you could use the same script to syndicate reading.am to Known and WordPress.
#
Zegnat
That’s the nice thing about Micropub existing outside of a specific CMS: multiple CMS will accept it
#
jeremycherfas
Right, I see the value of that, even though I personally do not anticipate wanting to send my reading.am links to any of my WP sites.
#
jeremycherfas
That display issue might be somethying to do with FILTER_VALIDATE_URL I think.
#
Zegnat
That shouldn’t do anything but confirm that something is a valid URL. Not sure where that impacts display
#
jeremycherfas
I thought it might be truncating the URL from the second https
#
jeremycherfas
I'm still not sure where shpub.phar should be. In /bin?
#
cweiske
it really does not matter
#
cweiske
leave it in any directory you want
#
cweiske
make it executable, and then you can do ./shpub.phar
#
cweiske
if you move it to /usr/bin/, then you don't need the "./" in front
#
jeremycherfas
OK. Should I remove the -0.6.0 from the filename?
#
cweiske
but then you need to ./shpub-0.6.0.phar
#
jeremycherfas
Cool. I have managed to authenticate!
#
cweiske
oh, a linkback from you :)
#
jeremycherfas
Well, that seemed a good first test!
#
jeremycherfas
Cweiske I tried to see what the syndication targets are of my server, and got this error "response data are not of type application/json"
#
cweiske
use --debug
#
cweiske
and run the curl command manually
#
jeremycherfas
I see now. Thanks.
#
jeremycherfas
cweiske One final question, for now: Can I use the same kind of formatting you have under custom post types to create a more detailed Bookmark post, with url, tags etc?
#
cweiske
tags: --category=foo
#
Loqi
tags has -1 karma in this channel (1 overall)
#
cweiske
tags++
#
cweiske
url: --x url=foo
#
Loqi
url has -1 karma in this channel (3 overall)
#
jeremycherfas
I mean, specifically, the way you have constructed the command at http://cweiske.de/shpub.htm#id13
#
cweiske
no, "custom post types" are not for that
#
cweiske
you need to add properties to a bookmark post
#
jeremycherfas
OK. Thanks. I will continue to expeirment, after lunch. Thanks for your help.
#
cweiske
shpub bookmark --category=foo -x url=mycustomslug http://example.org "this is my example text"
#
Zegnat
tags++
#
Loqi
tags has 0 karma in this channel (2 overall)
#
Zegnat
url++
#
Loqi
url has 0 karma in this channel (4 overall)
#
Zegnat
wonder why those registered as karma counters
#
cweiske
overly permissive regex
#
dgold
can I ask a non-indiewebbish type question about code?
#
Loqi
dgold: [eddie] left you a message 1 day, 14 hours ago: no macOS share sheets that I know of yet that support micropub. Is there a specific reason you’re asking?
#
dgold
my script uses some ternary operators - isset($a) ? ifTrue : ifFalse; things
#
dgold
thing is, some of them, as they are iterating over arrays, get to be horribly long
#
dgold
can I break those up over several lines, and if so, how should I indent them?
#
cweiske
if-then-else :)
#
Zegnat
“how should I indent them” - spaces, not tabs.
#
Zegnat
Sorry :P
#
dgold
snark will get you slaps, Zegnat :)
#
Zegnat
If they get so long that you feel you need to break them up, is there any reason not to write them as full if(){}else{} blocks?
#
dgold
has a friend who is quite... em... opinionated on that topic. Calls me a spacer
#
dgold
Zegnat: I guess I could, just that the ternary seem to be so much more understandable
#
dgold
just getting fed up with phpcs screaming at me about line length
#
Zegnat
You could turn off that specific rule.
#
Zegnat
That also fixes it ;)
[miklb] joined the channel
#
[miklb]
you can always exclude that rule in your local phpcs config and revisit later
#
Zegnat
Blame the Slack delay, [miklb] ;)
#
Zegnat
dgold, I used to be a big fan of ternaries, and having few lines of code to do many (sub)decisions. But these days I actually prefer many short lines for readability.
#
Zegnat
So I notice that I have switched to much more explicit if blocks
#
[miklb]
readability++
#
Loqi
readability has 1 karma
AngeloGladding joined the channel
#
dgold
that's a good point Zegnat
John_Ivan and leg joined the channel
#
jeremycherfas
OK, I'm back with more noob questions. If I want to make use of shpub in my php program, do I use exec()?
#
cweiske
I thought you should use shpub only to test out micropub and get the curl command
#
cweiske
you can convert that curl command to php code then
#
cweiske
if I were you I'd not rely on shpub
#
jeremycherfas
Oh. I see. OK, I'll try that.
#
jeremycherfas
Oh. I see. OK, I'll try that.
#
jeremycherfas
But then, do I use the same Authorization: Bearer, or do I use the API key from KNown?
#
cweiske
same auth bearer
#
cweiske
the micropub tokens are different from the normal known api key
leg joined the channel
#
@sl007
@rhiaro @dustyweb @SocialWebWG Instead care about friends, https://indieweb.org/Events needs you and there are just a few https://github.com/w3c/activitystreams/issues ;) For me it just feels that all 3 webmention, microparts and activitypub are achivements.
(twitter.com/_/status/956883702885371905)
eli_oat and KevinMarks joined the channel
EmreSokullu joined the channel
#
jeremycherfas
Very cool; thanks. Right now, I'm stumped by the fact that when I create a bookmark by hand, I can add what it calls a desction, but when I do that with shpub, so far, I cannot. Still trying
#
cweiske
shpub [options] bookmark [options] url [text]
#
cweiske
after the URL, pass the description text
#
jeremycherfas
Does not accept it, so far
#
cweiske
what do you get?
#
jeremycherfas
Ignores it.
#
cweiske
when you --debug, is the text included in the request?
#
cweiske
shpub.php --debug bookmark cweiske.de "this is a text"
#
cweiske
-d 'h=entry' -d 'bookmark-of=http://cweiske.de' -d 'content=this is a text'
#
cweiske
here it is included
#
cweiske
-d content=...
#
jeremycherfas
Let me try content. I have tried body and description
#
jeremycherfas
Not included and not in curl
#
cweiske
what's your shpub command?
#
jeremycherfas
php ./shpub-0.6.0.phar --debug bookmark -x tags=#testtag -x title="Inserting a title with a star and a link" -x bookmark-of=https://indieweb.org/bookmark -x content="A bit meta, linking to this."
#
cweiske
you don't need that x bookmark-of
#
cweiske
that's automatically added because you say "bookmark" at first
#
cweiske
-x content also not
#
jeremycherfas
OK, let me try again
#
cweiske
php ./shpub-0.6.0.phar --debug bookmark https://indieweb.org/bookmark "A bit meta, linking to this."
#
jeremycherfas
Nope. It is in the curl but seems that Known is not receiving that element.
#
Zegnat
What is the final curl command? (Minus your auth.)
#
Loqi
It looks like we don't have a page for "final curl command" yet. Would you like to create it? (Or just say "final curl command is ____", a sentence describing the term)
#
jeremycherfas
curl -X POST -H 'User-Agent: shpub' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer xxx' -d 'h=entry' -d 'bookmark-of=https://indieweb.org/bookmark' -d 'content=using a different label for description.' -d 'tags=#testtag' -d 'title=Description' 'https://stream.jeremycherfas.net/micropub/endpoint'
#
Zegnat
Hmm, I would have expected that to work
#
jeremycherfas
Me too. Very frustrating. I'll ask in the #known channel in case mapcyka is lurking there.
#
Zegnat
what if you do exactly the same command in shpub, but add --json?
John_Ivan joined the channel
#
jeremycherfas
I'll try anything
#
Zegnat
In case there is a bug in Known’s handling, if you add --json to the shpub command it will send the post as a JSON body instead of form encoded.
#
jeremycherfas
Server returned an error status code 400
#
jeremycherfas
invalid_request: Couldn't create bookmark: That doesn't look like a valid URL.
#
Zegnat
Hahaha
#
Loqi
hehe
#
Zegnat
And before it was working except that content was being ignored?
#
jeremycherfas
Yes. Json seems to create a different curl payload
#
Zegnat
Yes, instead of sending form encoded (-d property=value) all the properties should be send in the request body as JSON
#
jeremycherfas
But it actually gets the entities differently. Look:
#
jeremycherfas
curl -X POST -H 'User-Agent: shpub' -H 'Content-Type: application/json' -H 'Authorization: Bearer 44cb20945935ef0d19be5867a575ed1f' --data '{"type":["h-entry"],"properties":{"bookmark-of":["http:\/\/using a different label for description."],"tags":["#testtag"],"title":["Description"],"https:\/\/indieweb.org\/bookmark":[null]}}' 'https://stream.jeremycherfas.net/micropub/endpoint'
#
jeremycherfas
Erk, left the auth code in there
#
Zegnat
I hope Known has a big red button to reset auth codes, haha
#
Zegnat
But that JSON looks wrong. cweiske, any known bugs with --json?
#
cweiske
that url indeed looks wrong
#
cweiske
that's a shpub bug
#
cweiske
I never nearly don't use --json
#
jeremycherfas
I suppose to get a new code I do shpub connect again
#
Zegnat
Should be, yes, though there should be a way for you to invalidate the old token in Known. Not sure where it handles that.
#
jeremycherfas
Account/indiepub allows you to revoke tokens
#
jeremycherfas
So I have to get a new one.
#
Zegnat
cweiske, I don’t really use JSON bodies either, but I saw they are handled separately in the Known code so I hoped this would be a neat solution.
#
Zegnat
jeremycherfas, getting a new token should be easy enough. I am happy the flow for revocation is simple! That often gets forgotten, and not revoking leaked tokens is bad.
#
jeremycherfas
Book-mark of has become http://title
EmreSokullu joined the channel
#
cweiske
i've opened an issue
#
cweiske
for shpub
#
jeremycherfas
Thanks. When I try to connect again, it says token already available.
#
jeremycherfas
Can I get a new one?
#
cweiske
you need to remove it from the config
#
cweiske
let me check
#
jeremycherfas
which config?
#
cweiske
-f, --force-update Force token update if token already available
#
cweiske
shpub connect --force
#
Zegnat
shpub++ for quick debugging
#
Loqi
shpub has 1 karma
snarfed joined the channel
#
jeremycherfas
Well, I don't think I can go much further, but I do think I have made some progress today, thanks to you both
#
Loqi
cweiske has 25 karma in this channel (124 overall)
#
Loqi
zegnat has 44 karma in this channel (169 overall)
EmreSokullu joined the channel
#
Zegnat
should just keep a Known testing environment somewhere
#
jeremycherfas
The json payload works with a hand edited bookmark-of URL but then does not send the tags or the title.
#
jeremycherfas
I think that is where Known's own names for the entities comes into play.
KevinMarks_ joined the channel
#
Zegnat
Could be. I didn’t instantly understand how the Micropub plugin works from looking at the code.
KevinMarks joined the channel
#
cweiske
Zegnat, it reads the parameters, then sets the parameters that known would expect for its own API calls and then calls $entity->saveDataFromInput()
#
cweiske
it basically makes parameter name conversion
#
Zegnat
Yeah, that’s what it looked like to me, in which case content should be getting picked up.
#
jeremycherfas
But looking at the blog you suggested https://github.com/idno/Known/blob/master/IdnoPlugins/Like/Like.php#L125 I can't see content, only description
#
jeremycherfas
Ands that is in the Likes plugin. I'm still not sure how that relates to the bookmarks.
#
cweiske
$this->setInput('body', $htmlPhoto.$content_value.$hashtags);
#
Zegnat
Bookmarks are handled by Likes, I saw some discussion about that earlier this week
#
cweiske
the micropub endpoint converts content to body
#
jeremycherfas
Yeah, and that discussion was about how confusing it is.
#
Zegnat
Hmm, that might be a problem cweiske
#
jeremycherfas
Zegnat The micropub code seems to be absolutely clear that it will accept 'content' and 'bookmark-of' and 'category' (but not 'tags')
#
jeremycherfas
Am I write that if you use the bookmark API then that will happen, but not if you use micropub?
AlanPearce[m] left the channel
#
Zegnat
Reading this, and what cweiske said, I almost think the Micropub code is taking your provided body, but the Like code discards it and only accepts “description”.
#
Zegnat
Exactly, and it probably gets the Like plugin there.
#
Zegnat
And the Like plugin then goes and overwrites “body” with the “bookmarkof” value: https://github.com/idno/Known/blob/master/IdnoPlugins/Like/Like.php#L144-L147
#
Zegnat
So then your body is gone.
#
jeremycherfas
So --- without digging deep into Known code, the answer may be to structure a Post type article with the information I want to publish with micropub.
#
Zegnat
The answer might just be that creating Likes and bookmarks with anything more than a URL as content via Micropub is broken.
#
Zegnat
But I would want to test it myself before stating so definitively.
#
Zegnat
Which means, if you want likes/bookmarks with text content: use the Known API where you can provide “description”.
#
jeremycherfas
That's what I want to say too. But it is perfctly possible to create the body by hand when cwriting a bookmark post
#
jeremycherfas
But using the known API is exactly where we started! And the problem there was that the Known API mangles the description.
#
Zegnat
Which may be a bug in itself.
#
jeremycherfas
And on which I have seen very little movement recently.
#
Zegnat
(And this is why nobody of us is offering hosted Known and support in their free time 😉)
#
jeremycherfas
I need to write some notes to myself and then think about raising an issue on the Like plugin.
[xavierroy], [andrea_arbogast, singpolyma and snarfed joined the channel
#
dgold
Zegnat: /me has discovered the null coalescing operator
#
dgold
and all is well with the world
#
Loqi
Zegnat: lol
#
dgold
makes my script php7.0 required, but such is life
#
Zegnat
And why should it not be? We are on PHP 7.2 and 5.6 is only getting security fixes.
#
dgold
oh, believe me, I'm happy
#
Zegnat
is still a little upset that 5.6 will get patches longer than 7.0
#
dgold
i can say with confidence that Known does not save the rich-format data from a like to the sql
#
aaronpk
oh wow I never knew about that operator
#
dgold
its the fashizzle (technical term)
#
aaronpk
wow that's gonna clean up a lot of code haha
#
aaronpk
my site is running under 7.2 now, so at least I can use it there if not in all my little libraries
[jeremycherfas] joined the channel
#
[jeremycherfas]
dgold Are you sure you wouldn’t prefer a spaceship operator?
#
dgold
[jeremycherfas]: I prefer the name of the spaceship operator, sure!
#
dgold
but I quite honestly don't _understand_ the spaceship
#
[jeremycherfas]
I don’t understand why it has that name. Go no-go?
#
aaronpk
cause it looks like a spaceship?
#
sknebel
<=> looks like a flying saucer
#
aaronpk
apparently I need to read the PHP release notes more often
#
dgold
whereas having typed `$var = (isset($abcdef['ghi']['jkl'])) ? $abcdef['ghi']['jkl'] : null` over and over again for weeks, stripping all that down to a single operator? I can grok that instantly
#
[jeremycherfas]
I really do not want to start digging into knowns sql for what is in some ways a very silly itch.
#
aaronpk
the spaceship will be useful for custom sorting functions
#
Zegnat
I would just say, disable the Like plugin, and add your own separate Like/Bookmark/whatever plugins, [jeremycherfas]. But I guess that will break other stuff, possibly including POSSE likes (if Known has those?)
#
aaronpk
in other news, anyone have a suggestion for how to install some vesrion of phpunit in a way that can be run under php 5.6 through 7.2?
#
aaronpk
I have that set up in php-mf2, but can't seem to replicate it in a new project
[miklb] and KevinMarks joined the channel
#
dgold
iirc, phpunit doesn't do 5.6 since last december, aaronpk
#
dgold
phpunit 5.6 only gets bugfix support until next Friday
#
dgold
5.7, sorry
#
aaronpk
I don't care if I have to use an old version of phpunit, but I need something that can run the tests under php 5.6
#
gRegorLove
On dreamhost you could use `php56` to invoke composer at the command line iirc
#
gRegorLove
Similar should work with phpunit
#
aaronpk
I keep getting this error trying to install phpunit 5 "phpunit/phpunit 5.0.0 conflicts with phpunit/phpunit-mock-objects[5.0.6]"
#
aaronpk
tho i'm running this composer command in php 7.1
#
aaronpk
yep, installing that under php 5.6 worked
#
aaronpk
someone must have messed up a version requirement string in phpunit-mock-objects
#
aaronpk
and using the composer.lock that 5.6 generated works fine when installing it in 7.1
#
Loqi
[MikeMcQuaid] #4721 Homebrew/php deprecation
#
aaronpk
oh yeah me too
#
dgold
:) I don't have php installed locally at all...
John_Ivan joined the channel
#
Zegnat
How do you cope dgold?! :P
#
dgold
Zegnat: i just keep stuff like that where it belongs, onna server someplace
[cleverdevil] joined the channel
#
[miklb]
guess you don’t do any offline development?
#
Zegnat
I am without solid internet connection so often these days that I can’t imagine outsourcing everything to external servers
#
aaronpk
I usually get a lot of work done on planes when there is no internet connection
#
[miklb]
Best thing I ever did was figure out how to get local dev environment running with homebrew. So seamless and part of my daily workflow now, it’s crazy thinking back to use MAMP or even Vagrant
#
GWG
I never do offline development
#
Loqi
GWG: sknebel left you a message 19 hours, 26 minutes ago: could you review the wordpress column in https://indieweb.org/Micropub/Servers#Implementation_status and bring it up to date if it is not? Thanks!
#
GWG
Forgot about that
#
GWG
I wish I could use that PHP operator. Curse my need for inclusiveness
KevinMarks joined the channel
#
gRegorLove
I've been on Windows for a while so never had a strong desire to mess with local PHP dev :)
#
gRegorLove
If I switch to Mac or Linux, I'm definitely more likely to
#
Zegnat
How is that new Ubuntu-shell-within-Windows? Tried that?
[jeremycherfas] joined the channel
#
dgold
[miklb]: no, I never do offline development
#
gRegorLove
Haven't tried it
snarfed, KevinMarks_, [miklb], KevinMarks, snarfed1, tantek and [kevinmarks] joined the channel
#
www.boffosocko.com
edited /Webmention (+525) "lazymention service & article"
(view diff)
#
gRegorLove
What is lazymention?
#
Loqi
lazymention is an open source service you can run on a Node.js server to send Webmentions from static sites https://indieweb.org/lazymention
[keithjgrant], tantek, jackjamieson, [cleverdevil], [eddie] and snarfed joined the channel
#
gRegorLove
KevinMarks, is pestagram dead?
AngeloGladding, KevinMarks, tantek, snarfed and [kevinmarks] joined the channel
#
[kevinmarks]
Yes, the api it was using went away, and it violated several terms for the new one.
snarfed joined the channel
#
snarfed
[kevinmarks]: feel free to port pestagram to granary (scraping)!
snarfed joined the channel
#
gRegorLove
ooh, I didn't think to try granary
#
gRegorLove
snarfed, What's activity_id, or does that apply to IG?
#
snarfed
gRegorLove: post id. for IG it can be photo id or shortcode
#
snarfed
blank for all
#
gRegorLove
Oops, totally missed the docs link, sorry. Jumped to the bottom and only found github. :)
#
snarfed
np! it's in the github readme too. happy to answer q's regardless