#dev 2018-09-27

2018-09-27 UTC
#
Loqi
jacky: tantek__ left you a message 1 hour, 50 minutes ago: hey add yourself to /chat-names so your icon shows up in logs!
#
jacky
I thought it did
#
jacky
er like I did
#
jacky
ah okay
#
jacky
it's because I'm on jacky and not jalcine
#
jacky
fixed
[eddie] and tantek__ joined the channel
#
eddiehinkle.com
edited /silo-quits (+134) "/* Silo quitters 2018 */ + me instapaper"
(view diff)
#
[jgmac1106]
What is hubzilla?
#
Loqi
Hubzilla (formerly RedMatrix) is an open source, federated, community web server that started as a fork of Friendica https://indieweb.org/HubZilla
[schmarty] joined the channel
#
@jgmac1106
↩️ Welcome! We have a ton 9f fun and you can tweet all you want from your own Domain…and check out webmentions for your comment solution. (http://jgregorymcverry.com/7434-2/)
(twitter.com/_/status/1045157187415363585)
snarfed, tantek__ and cweiske joined the channel
#
Loqi
[ludovicchabant] vim-gutentags: A Vim plugin that manages your tag files
[kevinmarks], [jgmac1106] and [tantek] joined the channel
#
[jgmac1106]
@zegnat is there anything I should do on my About Me page? Should I stay away from long-form h-cards and stick to simple ones?
#
Zegnat
Note that there is nothing wrong with the page. It just isn’t clear from the mf2 parser output alone (to Loqi) what the main piece of content is. Making the h-card a representative h-card (https://indieweb.org/representative_h-card) is something you could try. That should convey that the h-card is what the URL is representative of.
#
Zegnat
But I think you are already do that. The h-card should match point 2 of http://microformats.org/wiki/representative-h-card-authoring ... so you could even file this as a Loqi and/or XRay bug, wherever this happens
#
aaronpk
Zegnat: I'm not sure how #2 there is relevant?
#
Zegnat
The h-card includes a url property that is also marked as rel="me", which makes the h-card a representative one, if I read that right?
#
aaronpk
I thought that #2 was about linking to other profiles
#
Zegnat
“To publish a representative h-card on a page […] you need to do at least one of two of the following”
#
Zegnat
And one of the two options is to add rel="me" on urls
#
aaronpk
But it specifically says to other profiles
#
aaronpk
which I don't understand how that is relevant
#
Zegnat
there is a rel="me" link to a twitter link in the h-card of [jgmac1106]
#
Zegnat
Thus the h-card is a representative h-card, per the spec
#
aaronpk
I don't see how I'm supposed to consume that
#
Zegnat
I am not sure either actually :P
#
Zegnat
Should check on how indiewebify.me is validating it
#
aaronpk
Especially since after mf2 parsing I cant tell that the rel=me link was inside the h-card
#
Zegnat
was first looking into XRay and how it checks for representative h-card
#
Zegnat
Maybe that doesn’t matter? All that matters is that any h-card with a url property that matches a rel-me URL is representative? And then you have to pick the first one?
#
aaronpk
Oh it does says it needs both rel=me and u-url
#
Zegnat
Yeah, that would be uncheckable.
#
Zegnat
(From the mf2 parser output, that is)
#
Zegnat
[jgmac1106], you should show your about page to tantek at the IWC. I believe he came up with representative hcards. See if he has any idea on how we can make it clear that about page’s main object is the h-card :)
#
[jgmac1106]
maybe if I switch the rel="author: to rel="me"
#
Zegnat
You already have other rel-me links in the card, so that’s not going to make a difference
#
[jgmac1106]
If I delete the comments it works
#
Zegnat
Probably because that leaves only 1 mf2 object on the entire page, so that gets picked by XRay regardless
#
Loqi
Greg McVerry
#
Zegnat
Also note that it isn’t not working right now, XRay just has a harder time finding the main object
#
[jgmac1106]
make sense, just consider Loqi the ultimate arbiter.
#
Zegnat
XRay does power a lot of stuff, so getting this cleared up could be good, haha
#
Zegnat
For XRay (and other places), you could add <data class="u-url" value="http://jgregorymcverry.com/about-me-2/"></data> to the h-card
#
Zegnat
An object that specifies the URL of the page it is on as a u-url is generally taken as the main object representing the page
tantek__ joined the channel
#
GWG
And I wasn't sure anyone would find this useful
#
Zegnat
refbacks are interesting, I am just concerned about spam
#
GWG
I have gotten some less useful ones
#
cweiske
I actually use my search engine crawler as tool to notify about mentions in chat while I'm offline
#
GWG
I need to refine it
#
GWG
Add filtering
#
GWG
But the wiki doesn't do webmentions for example, or the chat logs
#
GWG
I wrote the plugin in an hour or so, so there is room for improvement
#
GWG
I should update the wiki
#
Loqi
I agree
[eddie] joined the channel
#
[eddie]
I have a bot that fetches the chat logs h-entries and scans for keywords then pushes a Micropub post to my Microsub reader channel when it finds my key words
#
[eddie]
It's useful... although it's been crashing occasionally. I need to turn it into an AWS serverless app so I don't have to worry or think about maintenance on it
#
GWG
Eddie, I need to pick your brain about how to integrate with micro.blog as I think it will help adoption
#
[eddie]
Yeah, definitely! Happy to talk micro.blog integration any time. I've investigated all the benefits (and challenges) of using it purely from IndieWeb tools
#
GWG
I think getting it into Indieweb tools for WordPress will get a lot of users into a more independent option
#
[jgmac1106]
@gwg here is what I do. I made a tag called microblog so I can be intentional about syndicating
#
[jgmac1106]
One radial button is all we really need. Webmentions works very well
#
GWG
jgmac1106, looking for thoughts on more advanced integration
#
GWG
[eddie], what is the most impactful thing I can do?
#
[eddie]
Well I think there are two key things for the best experience. First is that the content of the RSS/JSON feed for Micro.blog needs to have the entire context within, so it generally is gonna have more than your typical mf2 content
#
[eddie]
For example if you do a checkin or photo those are actually included inside the feed's content as an image tag
#
[eddie]
The other thing is replying from your own site
#
[eddie]
Micro.blog accepts external replies as Webmentions, but the challenge is if you are replying to another site that is on Wordpress your webmention will be sent to the other Wordpress and not Micro.blog
[tantek] joined the channel
#
[eddie]
so in my site I developed essentially a Webmention CC feature. I detailed that specific problem and fix in this blog post: https://eddiehinkle.com/2018/08/23/11/article/
#
Loqi
[Eddie Hinkle] How I send webmentions to Micro.blog
#
GWG
You send every webmention to micro.blog regardless or where it came from?
#
[eddie]
Micro.blog ignores it if it doesn't exist within the micro.blog system
#
[eddie]
Not the best solution but it's the most workable solution currently
#
[eddie]
I believe Manton is planning to eventually add support for reply posts within a JSON Feed
#
GWG
I saw that. I may implement it when I fix my Jsonfeed
#
GWG
I have to ask him to do something for me
#
[eddie]
Makes sense. No rush on that though, because it isn't currently active within Micro.blog
#
GWG
A new version of the WordPress Jsonfeed plugin
#
GWG
Once he pushes once, I can push updates
#
[eddie]
ahhh gotcha
snarfed, [schmarty], [chrisaldrich], [eddie], jackjamieson, [tantek], tantek__, [kevinmarks], [dougbeal] and jgmac1106 joined the channel
#
tantek.com
created /styleguide (+25) "r"
(view diff)
#
loqi.me
edited /IndieWeb (+35) "tantek__ added "[[style-guide]]" to "See Also""
(view diff)
[schmarty], snarfed, [chrisaldrich], [tantek], [kevinmarks], KartikPrabhu and [pfefferle] joined the channel
#
[pfefferle]
aaronpk do you have a working signed activitypub messages implementation?
#
aaronpk
Yes two
#
strugee
oh nice aaronpk!
#
aaronpk
My website (the messy version since I implemented it piecemeal) and then a new Laravel implementation that's running on AnAcocado@avocado.lol
jgmac1106 joined the channel
#
@Downes
↩️ I've pushed a number of changes to the gRSShopper code to https://github.com/Downes/gRSShopper - includes nice clean starter SQL files, support for webmentions, support for events, script for push-button version updates, bug fixes, etc.
(twitter.com/_/status/1045406081445449728)
#
[pfefferle]
aaronpk I can’t get the signatures to work and always get “Verification failed for matthias@pfefferle.org https://pfefferle.org/author/pfefferle/“… My try https://gist.github.com/pfefferle/86dea57ed3a1492611a229ea62205179
#
[pfefferle]
I have no problems verifying the signatures of mastodon and signing and verifying of my signatures does also work… but mastodon does not like them… as I said
#
aaronpk
[pfefferle]: I don't see anything obvious. can you try sending something to me? my server will reply with better errors and I will see the logs
#
aaronpk
no that doesn't get sent as a header
#
swentel
you don't necessarily need it anyway
#
swentel
I only send date and that's fine enough
#
aaronpk
that's a magic http signature thing to capture the method and path as a thing you can sign
#
aaronpk
you can't actually send that as a header since parens aren't a valid http header character
snarfed joined the channel
#
aaronpk
the other thing I can think of is if wp_safe_remote_post is doing something with the headers, like preventing one from being sent
#
[pfefferle]
It will be sent, but perhaps there is some escaping
#
aaronpk
if you try to send something to my aaronparecki.com inbox you'll get more details back
#
[pfefferle]
Ok, will try
#
[pfefferle]
Swentel you mean only the date header without signatures?
#
swentel
[pfefferle], no, only signing with date
#
aaronpk
wait you can send stuff to mastodon signing only the date?
#
aaronpk
that sounds..not safe
#
[pfefferle]
ok, sent and it works on your endpoint
#
[pfefferle]
perhaps some weird caching on mastodon
#
aaronpk
interesting
#
aaronpk
did you send a JSON body?
#
aaronpk
it showed up as an empty JSON object
#
[pfefferle]
sorry 😉
#
aaronpk
maybe drop the spaces in your JSON
#
aaronpk
and use a real JSON encoder instead of building the JSON string by hand?
#
[pfefferle]
it was empty
#
[pfefferle]
simply wanted to test the headers
#
aaronpk
IIRC mastodon does cache the profile it's discovered for the keyId but I can't remember for how long
#
[pfefferle]
oh man… I regenerated my key
#
aaronpk
I see two requests in my logs 14 seconds apart. the first one failed validation but the second one worked
#
[pfefferle]
perhaps this is the issue
#
[pfefferle]
I had a typo in the first
#
[pfefferle]
If it is the caching, I lost a complete day for nothing!!! 😤
#
swentel
yeah, so verified, I only sign with 'date'
#
aaronpk
[pfefferle]: have you tested against other mastodon instances?
#
aaronpk
I ended up making accounts on 3 or 4 instances to test with to avoid caching issues that I noticed
#
[pfefferle]
I have, but not after changing the keys
#
[pfefferle]
will try one more
#
aaronpk
seems like maybe it shouldn't be caching stuff until it succeeds once but oh well
#
[pfefferle]
it was caching!
#
aaronpk
wow yup
[eddie] joined the channel
#
[eddie]
aaronpk In order to use webmention do we have to sign in to the domain that we want to accept webmentions from?
#
[eddie]
webmention.io *
#
aaronpk
[eddie]: no you can use the same endpoint with as many sites as you want
#
[pfefferle]
aaronpk do you have an example how an “Accept” of a follow request looks like?
#
[eddie]
aaronpk ohhhh the username is a domain but I can use that username on any domain
#
[pfefferle]
or do you swentel?
#
swentel
I documented on fed.bridgy queue somewhere, one sec
#
Loqi
[swentel] So, because I'm better at PHP, I exported my private key and than started hacking around, and guess what. I got it working :) It took me a while to create the proper object and signature, but now https://mastodon.social/users/swentel/following is fol...
#
aaronpk
[eddie]: yeah there are a handful of accounts whose username are just a string like "aaronpk" but when I enabled public signups i made it set a username to the domain of who logged in
#
[eddie]
:thumbsup:
#
Loqi
swentel has 10 karma in this channel over the last year (19 in all channels)
#
[pfefferle]
swentel++
#
[pfefferle]
aaronpk++
#
Loqi
aaronpk has 105 karma in this channel over the last year (309 in all channels)
#
Loqi
[swentel] #30 Allow posts to be deleted
#
[pfefferle]
nice! works like a charm!
[tantek], [jgmac1106], [schmarty] and eli_oat joined the channel
#
jacky
hey has anyone looked/implemented an extension to python-social-core for IndieAuth?
[tantek] and GWG joined the channel