#known 2017-03-27

2017-03-27 UTC
j12t, tantek, loicm, mapkyca, [kevinmarks], [keithjgrant] and [eddie] joined the channel
#
[jeremycherfas]
!tell dgold Snoopping through your pnut plugin and wondering whether this line 64 ````
[jeremycherfas] joined the channel
#
[jeremycherfas]
\Idno\Core\site()->syndication()->registerService('pnut', function() {
#
[jeremycherfas]
}, ['note', 'article', ‘image’]);
#
[jeremycherfas]
return $this->hasPnut();
#
Loqi
Ok, I'll tell them that when I see them next
#
[jeremycherfas]
is the place to start thinking about syndicating bookmarks.
#
aaronpk
oops, multiline messages won't work with !tell apparently
#
[jeremycherfas]
Oops indeed. I’m hoping he’ll see the followup post too.
#
[jeremycherfas]
But interesting that it accepted the code block!
#
aaronpk
i did quite a bit of work to translate slack messages to IRC :)
#
aaronpk
tho maybe i should have posted multiline code blocks at a URL and sent the URL instead
#
[jeremycherfas]
I flit back and forth between Slack (much better when I need to catch up after a gap) and IRC direct, which can miss stuff if my machine goes to sleep or offline for any reason.
#
aaronpk
the web logs do a pretty good job of being a quick way to catch up too
#
dgold
[jeremycherfas]: Yeah - right after there is what I've working on now
#
Loqi
dgold: [jeremycherfas] left you a message 1 day, 17 hours ago: I expect you're right and that Robert would be open to the idea. Does it go far beyond adding some formatting for mf2? I'm sure that would be relatively easy. Webmention might be more difficult because every user would need to be involved. Or have I got that wrong?
#
Loqi
dgold: [jeremycherfas] left you a message 10 minutes ago: Snoopping through your pnut plugin and wondering whether this line 64 ````
#
dgold
[jeremycherfas]: its not just as simple as adding bookmark there - it needs to have actual bookmark code written
#
dgold
and that's where I'm flailing, tbh -- if pnut offered a canonical url, I'd be okay, but it doesn't
#
dgold
aaronpk: having done a _very_ simple irc->slack relay, I am in awe of your abilities
#
dgold
mine doesn't send nice avatars, just the bot's identified image
#
[jeremycherfas]
aaronpk I use the logs first thing in the morning.
#
[jeremycherfas]
Dgold: I’m thinking only of POSSEing bookmarks TO Pnut, not in getting them back.
#
dgold
[jeremycherfas]: understood - but are you looking to POSSE a bookmark of an external page, or are you looking to 'star' a pnut post?
#
dgold
because, in the API, those _are_ bookmarks
#
[jeremycherfas]
I’m looking to POSSE a bookmark of an external page, from Known to pnut as an ordinary pnut post.
#
[jeremycherfas]
To share my harvested wisdom with the pnut world.
#
[jeremycherfas]
So on a cursory snoop through your code, it seems that you have the three “cases” in line 64, and then three different ways of handling those types of Known posts.
#
[jeremycherfas]
My thinking was to add a fourth case, for posts that Known considers bookmarks, and send those to pnut just as you currently send posts and articles.
[mko] joined the channel
#
dgold
I'm rewriting the 'article' code as a function, [jeremycherfas], that should accoomplish what you seek
#
[jeremycherfas]
Is there any way I can help?
#
dgold
well, it builds ok
#
dgold
but doesn't appear as a target
#
[jeremycherfas]
Locations and Bookmarks seem to be handled differently by Known, which is why the button for pnut doesn’t show there. At least, that’s my current understanding.
[kevinmarks] joined the channel
#
dgold
I can not get known to register pnut for Bookmarks
#
dgold
Its appearing properly in rsvps, articles, media, -everything-, but it simply will NOT appear for bookmark
#
dgold
nope. even put in a 'like' handler, no dice at all
#
dgold
right, I have to do some paying work - [jeremycherfas] et al - you're welcome to take a look at the `bookmarks` branch of https://github.com/dg01d/KnownPnut and tell me what I'm doing wrong
tantek, [kevinmarks], raretrack, [mko], sdsdsa and [cleverdevil] joined the channel
#
[cleverdevil]
Does Known support checkins via Micropub?
#
[cleverdevil]
Trying out OwnYourSwarm.
#
dgold
I don't think so, [cleverdevil]
#
dgold
iirc OYS uses json
#
aaronpk
does Known support micropub JSON at all?
#
[cleverdevil]
Looks like it at least sort of wants to support checkins?
#
tantek
cleverdevil, why not POSSE?
#
aaronpk
oh what?
#
dgold
no, it does not support json micropub
#
tantek
Known has native support for checkins in its UI
#
tantek
and last I checked, benwerd was POSSEing to Foursquare
#
tantek
so there's definitely a way to do it
#
[cleverdevil]
tantek true.
#
aaronpk
it seems like someone was experimenting with "mp-type=checkin"
#
[cleverdevil]
But, I much prefer the Swarm native app to Known's UI.
#
aaronpk
^^ yes that
#
tantek
yes that's a good reason
#
aaronpk
especially with the new offline checkins
#
[cleverdevil]
(That is precisely what inspired me to try all of this again).
#
tantek
a-ha, not just the coins? ;)
#
[cleverdevil]
Heh, definitely *not* the coins ?
#
aaronpk
i like the comments you get with coins more than the coins themselves
#
tantek
do those get backfed too?
#
aaronpk
via webmention!
#
[cleverdevil]
I've written a few Known plugins, but am still not very familiar with the Known internals.
#
[cleverdevil]
So, I don't really think I'm the best person to take a crack at fixing this :/;
#
dgold
[cleverdevil]: you have?
#
dgold
I'm beating my head against it at the minute
#
aaronpk
this micropub plugin doesn't look too bad. i might be able to make it support JSON, and also map ownyourswarm checkins to known checkins
#
[cleverdevil]
That said, there aren't many people doing core Known development ?
#
dgold
cannot, simply CanNot get the thing to show a synfication option in Bookmarks
#
dgold
Oh, I have your reviews
#
[cleverdevil]
Glad to hear it!
#
dgold
nice work
#
[cleverdevil]
My first PHP in over a decade, LOL.
#
dgold
[cleverdevil]++
#
Loqi
cleverdevil has 2 karma in this channel (13 overall)
[chrisaldrich] and [kevinmarks] joined the channel
#
[kevinmarks]
I've been having grief with known micropub
#
[kevinmarks]
Quill and ownyourgram work, inkstone doesn't, ownyourswarm doesn't
#
aaronpk
have you run it against micropub.rocks to pinpoint specific problems?
#
@oss_php
known-pinboard - Post bookmarks from Known (http://withknown.com) to Pinboard (pinboard.in), Indi... https://github.com/egoexpress/known-pinboard
(twitter.com/_/status/846447181326422016)
sknebel joined the channel
#
srcr
Is it possible in known to post something and manually add a url where the same content is also posted ?
j12t and [jeremycherfas] joined the channel
#
aaronpk
i seem to have found myself in an infinite loop trying to set a post slug
#
aaronpk
the "setSlugResilient" method is stuck in a while loop
#
aaronpk
...not so resilient after all
#
aaronpk
oh man, i figured it out
#
aaronpk
that's bad
#
aaronpk
i don't have a quick fix either
#
aaronpk
hacked around it for now. that was incredibly frustrating
[cleverdevil] joined the channel
#
Loqi
aaronpk has 3 karma in this channel (1255 overall)
#
aaronpk
now for checkins
#
[cleverdevil]
This might actually get me to move from the last release to master ?
#
aaronpk
it seems there are lots of improvements since the last release
#
aaronpk
probably worth it
#
[cleverdevil]
Yup, I agree.
#
[cleverdevil]
I'll just double (and triple) check my backups before I do it ?
#
aaronpk
definitely
#
[cleverdevil]
I've got automated daily backups offsite.
#
aaronpk
Known checkins can have an empty content, but it appears they always have a "name"?
j12t joined the channel
#
aaronpk
nevermind, I see how it works. the checkin plugin generates the name
#
aaronpk
i'm just going to add that to my existing PR
[kevinmarks] joined the channel
#
aaronpk
just added photo support to checkins
[cleverdevil] joined the channel
#
aaronpk
Known does lose a bit of information compared to what ownyourswarm sends
#
aaronpk
but it does a decent job of representing checkins
j12t and [mko] joined the channel
#
[cleverdevil]
Once it lands, I'll move over to the latest git version of Known, and see how it works for me.
#
aaronpk
who reviews PRs these days?
tantek and j12t joined the channel