#dev 2018-09-04

2018-09-04 UTC
#
aaronpk
okay I can get an incomplete autolinking of markdown if I am willing to lose autolinking things inside html tags
#
aaronpk
nope nevermind, still doesn't work
#
[kevinmarks]
mung markdown into html, then use html conventions makes sense to me. at least html only has 2 magic characters
snarfed joined the channel
#
aaronpk
unfortunately it's more than just 2 magic characters
#
aaronpk
e.g. <a>@noautolink</a> <b>@autolink</b>
snarfed and AngeloGladding joined the channel
#
aaronpk
wtf, those spam pingbacks are still getting through and I can't figure out how
snarfed, eli_oat and iasai joined the channel
#
miklb__
all from the same IP address?
renem joined the channel
#
aaronpk
and from a variety of pages to a bunch of different wiki pages
#
aaronpk
sometimes the URL is even an instagram.com URL
#
aaronpk
so I really don't understand how my code is letting that pass
[kevinmarks], eli_oat1 and [tantek] joined the channel
#
[tantek]
[kevinmarks] [aaronpk] my auto linker has to do all the markup stuff at the same time, like embedding, linking @-names
#
[tantek]
And yes it is idempotent, but only ok its own output. It’s not hardened to work on arbitrary HTML. As aaronpk noted, that’s much harder
#
[tantek]
*on its own HTML
#
aaronpk
So I managed to get it working on autolinking only inside the text content of nodes, but then when I go to serialize the HTML from the DOM object it breaks totally unrelated things
#
aaronpk
Once I’m traversing a DOM I can tell whether a text node is inside an <a> or <code> to avoid auto linking that text
eli_oat2, eli_oat, eli_oat1, [kevinmarks], [eddie], GeekDude4 and [iambismark] joined the channel
#
ludovicchabant
hey here, do you people send Webmentions for all links in your articles, or just the one tagged with `in-reply-to`? Or something custom? What's the general Webmention etiquette?
danyao, Kongaloosh, dgold, [kevinmarks], barpthewire, cweiske and [tantek] joined the channel
#
Zegnat
!tell aaronpk were you using masterminds HTML5 parser for the DOM serialisation? If the to HTML step is breaking stuff in the default DOMDocument implementation you might want to try theirs.
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
ludovicchabant, I'd sent webmentions to all links. The receivers can then use the in-reply-to data to see whether they were a specific target or just a "mention".
#
Zegnat
Some sites will split up replies and mentions in their display of interactions.
[Niklas] joined the channel
#
[Niklas]
Hey Dev’s! I am currently building my website with the Kirby CMS “new” and have now integrated Webmentions. The whole thing is local and I don’t have any reactions via webmentions yet, so I can’t test the display and function properly. Is there a way to create Webmentions for testing locally?
KevinMarks joined the channel
#
petermolnar
"The property occupation is not recognised by Google for an object of type Person." - shall I use PerformerIn...? Google gonna' google.
#
petermolnar
or brand? Am I a brand?
[kevinmarks] joined the channel
#
[kevinmarks]
Niklas, did you find webmention.rocks
#
[kevinmarks]
The /webmention page shows how to send them with curl
eli_oat joined the channel
#
Zegnat
There is also https://github.com/voxpelli/node-webmention-testpinger for sending test webmentions, but I have heard that might be a little finicky to set up sometimes
#
Loqi
[voxpelli] node-webmention-testpinger: A tool to ping your site with a variety of real world WebMentions
acerbic14, jeremych_ and eli_oat joined the channel
#
jeremycherfas
ludovicchabant I send to all when it is automatic, from my stream on Known, and select when I do it manually, via Telegraph.
egos24, foddo10 and [Niklas] joined the channel
#
[Niklas]
Great, thanks for your solutions!
#
[Niklas]
I will test it
[kevinmarks] joined the channel
#
Loqi
[Kevin Marks] @kaniini you choose to use markdown. Now you don't know how many problems you have as everyone does lists differently. http://johnmacfarlane.net/babelmark2/?normalize=1&text=+8.+item+1%0A+9.+item+2%0A10.+item+2a
[jgmac1106], eli_oat1, cweiske, eli_oat, barpthewire, m4v2, snarfed and [keithjgrant] joined the channel
#
[keithjgrant]
What is webmention?
#
Loqi
Webmention is a web standard for mentions and conversations across the web, a powerful building block that is used for a growing federated network of comments, likes, reposts, and other rich interactions across the decentralized social web https://indieweb.org/Webmention
#
[keithjgrant]
☝ has a webmention.svg.png
#
[keithjgrant]
Anywhere I can get an actual svg?
#
[keithjgrant]
(of the logo, I mean)
jjuran, eli_oat and CGML7 joined the channel
#
aaronpk
Zegnat: good idea, I forgot that the masterminds one can serialize, since I was only using it for parsing before
#
Loqi
aaronpk: Zegnat left you a message 7 hours, 7 minutes ago: were you using masterminds HTML5 parser for the DOM serialisation? If the to HTML step is breaking stuff in the default DOMDocument implementation you might want to try theirs.
#
aaronpk
do I want to get sucked back down this rabbit hole today?
#
aaronpk
gives himself a 1 hour time limit
#
Zegnat
Put it on GitHub, assign the issue to me, watch me fuzz over DOM standards in PHP? :P
#
aaronpk
oh dear lol
#
aaronpk
it's too tied in to my website to put on github tho
#
Zegnat
Ah, the wrong part of p3k ;)
#
aaronpk
i'd like to turn my autolinking into a library, but the challenge is doing that in a way that is also extensible with a custom nicknames cache
[kevinmarks] and [grantcodes] joined the channel
#
[kevinmarks]
can you pass it a 'get url for nickname' function?
#
aaronpk
it's a little more complicated than that but yes
#
aaronpk
it's "get url for nickname" or "get silo-specific nickname for nickname" depending on the context
[jgmac1106] joined the channel
#
aaronpk
[grantcodes]: I made a little script that uses action=timeline&before=X to find new notifications since the last time it has run
#
aaronpk
so it only stores the "before" paging ID between runs
#
[grantcodes]
Yes that's what mine does too
#
aaronpk
I thought that was a neat use of the paging key
#
aaronpk
I was considering not sending a push notification if the item is already marked as read as well
#
aaronpk
since presumably if it's marked read it's because I saw it on my computer and the push would be redundant
#
[grantcodes]
Mine takes read into account
#
aaronpk
this runs every minute though so the odds of me seeing a notification on desktop before the script has run are slim
#
[grantcodes]
What it doesn't do is look look at a next page of results
#
[grantcodes]
But same thing, not likely to have more than a page of entries every minute
#
aaronpk
yeah same
#
aaronpk
do I really want to get 20+ notifications all at once anyway? probably not
#
aaronpk
i'll wait til I get the next bridgy flood and see how that feels
#
[grantcodes]
The other thing is maybe like to do is have some way of viewing the notification in your reader of choice but don't know how I'd handle that across readers / devices
[tantek] joined the channel
#
[tantek]
What is autolink?
#
Loqi
An autolink is a hyperlink that was automatically added to some text to link that text to an obvious or useful destination, like hyperlinking a URL in plaintext to the URL itself, linking hashtags to search results, and @-names to their profile pages https://indieweb.org/autolink
#
jeremycherfas
I was just reading about the dangers of SVG in WP and worried that I might make a mistake.
#
Zegnat
aaronpk, “it's "get url for nickname" or "get silo-specific nickname for nickname" depending on the context”, does that really matter? Both would just be a call to something like translateMentions($html, $lookupSystem)? Just that when you are readying the text for twitter you are using the Twitter-specific $lookupSystem?
#
[tantek]
CASSIS << Falcon
#
aaronpk
Zegnat: URL vs nickname tho
#
aaronpk
I have two versions, one where I need to output HTML, the other where I need to replace nicknames in plaintext
#
Zegnat
Aah. I thought you would just be generating the plaintext from the HTML. So the replace code would work the same in both cases (always on the HTML)
#
aaronpk
hm, no, that sounds fragile
#
aaronpk
text -> html -> text?
#
aaronpk
when e.g. posse'ing to github, I need to send the actual text source that I wrote, with only usernames replaced. I don't send HTML and round-tripping back to text would actually break the markdown that github supports
#
aaronpk
this is why i'm worried this is too specific to my site
#
Zegnat
It is super workflow dependent.
#
[tantek]
Not necessarily
eli_oat joined the channel
#
Zegnat
Do you always write 100% plain text entries though, aaronpk? I often found myself dropping in an HTML element or two.
[Serena] joined the channel
#
aaronpk
Zegnat: I write either text, markdown, or HTML. my storage format has a property to tell what content type the source is.
#
aaronpk
so I basically need 3 different autolinkers
#
petermolnar
Zegnat: I barely ever do that, unless there's no way to avoid it; I'd rather make a conditional template based on meta information
#
aaronpk
although I think I will end up turning the markdown to html first, then running the html autolinker on that
#
Zegnat
aaronpk, yeah, that’s where I would prefer to convert all formats into one canonical format for post-processing such as autolinking.
#
Zegnat
Though I do understand that you are then stuck with an HTML copy you can’t easily POSSE to GitHub :(
MobileMatt27 joined the channel
#
aaronpk
right, I need the plaintext to posse to twitter and github
#
[tantek]
No. I POSSE HTML to Github via Bridgy “easily”
#
aaronpk
IIRC github won't link up <a href="http://github.com/aaronpk">aaronpk</a> the same way it does if you say just "@aaronpk"
#
[tantek]
I only autolink/embed/space etc “plain text”.
#
Zegnat
Bridgy has to turn that HTML to Markdown though, IIRC
#
aaronpk
ah right, I forgot you can actually type html in a github issue
#
aaronpk
probably becausse it's using a markdown parser that allows HTML
#
[tantek]
Yes, and there’s already libraries etc that do that (HTML->MD) so no need for me to reinvent/reimplement
#
[tantek]
Yes to Zegnat that is
#
aaronpk
the problem with that is the @-mentions aren't actual mentions when they are html hyperlinks
#
ludovicchabant
Thanks Zegnat and jeremycherfas for the replies last night! This means I should be able to use ronkyuu to do pretty much all the webmention related stuff
#
Loqi
[aaronpk] #1 test linking
#
aaronpk
(I wrote that as HTML in the web interface)
#
aaronpk
compare to this which I wrote as text https://github.com/aaronpk/testing/issues/2
#
Loqi
[aaronpk] #2 test linking 2
#
[tantek]
Aaronpk I count that as GH’s bug
#
aaronpk
you are more willing to have things not work than I am then
#
[tantek]
Because they already recognize their own issue links
#
[tantek]
So clearly they have code to recognize Github.com links
#
[tantek]
They’re just dropping profile links on the floor when they should be recognizing them
#
[tantek]
Because profile links are simpler and shorter than issue links
#
[tantek]
WDYM by “not work”?
#
[tantek]
The links work fine
#
[tantek]
Notifications?
#
aaronpk
right, notifications and other things that github does with native mentions
#
Zegnat
Do they support issue links?
#
aaronpk
just tested that
#
Loqi
[aaronpk] #3 test linking to an issue
#
aaronpk
I wrote that as HTML, linking to issue 1
#
aaronpk
and it does show up on issue 1
#
Zegnat
Ah, that’s good!
#
aaronpk
as "referenced this issue"
#
[kevinmarks]
I always paste URLs for issues , and GH seems to cope
#
aaronpk
so by that logic, I would agree that github should be treating hyperlinks of github usernames the same way as @-mentions
#
Zegnat
I seem to recall a time where, if you didn’t want the link to show up as a reference on the other side, you could just make it an explicit markdown link
#
[tantek]
Aaronpk exactly
#
aaronpk
[kevinmarks]: we're not talking about plaintext URLs, we're talking about actual hyperlinks like <a>
#
Zegnat
And only GitHub’s own short syntax (aaronpk/testing#3) would show the link relation ship on the other side. But either I am misremembering or they have fixed that.
#
[kevinmarks]
yes, I do that because they have a 'make a link' button in the editor
#
[kevinmarks]
and I don't know their short syntaxes
#
@kevinmarks
You have a text editing problem. You decide to use markdown. Now you don't know how many problems you have as everyone does lists differently. http://johnmacfarlane.net/babelmark2/?normalize=1&text=+8.+item+1%0A+9.+item+2%0A10.+item+2a
(twitter.com/_/status/1036975704569729025)
jackjamieson joined the channel
#
[tantek]
So it makes sense to procrastinate on the Github profile link mention thing because they’ll fix it eventually. Better to work on other things instead.
#
[tantek]
Kevinmarks how often do you use lists in MD?
KartikPrabhu joined the channel
#
aaronpk
sure but the same problem applies when posse'ing to twitter, since you can't send HTML to twitter
#
[tantek]
This is why my autolinker defaults to twitter @-mentions
#
aaronpk
but what I can do now is type "@tantek" in a note, and it changes to "@t" when it sends to twitter
#
aaronpk
which is more relevant for people like sknebel whose twitter name I can never remember
#
[tantek]
That’s a better UI
#
[tantek]
Do you store the original user name you typed?
#
aaronpk
yeah, and the original is displayed on my site
#
aaronpk
it's only transformed for the POSSE step
#
[tantek]
Interesting. So not autocomplete like silos do
#
aaronpk
and now also "@tantek" is hyperlinked to tantek.com
#
aaronpk
autocomplete is the next step, it just requires coordination between quill and my site via micropub :)
#
ludovicchabant
Do you figure out the appropriate silo usernames by scraping the person’s website homepage? Or by entering manually?
#
[tantek]
That (storing/showing your own @-names on your site) sounds like what I’ve heard to referred to as “petnames”
#
aaronpk
yeah, I don't like the term "petnames" but that is how i've been thinking about this forever
#
ludovicchabant
And what do you do when you POSSE to a silo where the person doesn’t have an account, or you don’t know what it is?
#
[tantek]
no need to scrape, you can parse rel=me for that
#
ludovicchabant
Well parse yes, sorry :)
#
aaronpk
ludovicchabant: I don't have any automated entry for this right now, but that is something I want to do as well
#
[tantek]
I also don’t like the term petnames
#
ludovicchabant
Ok, because the thing I’m wondering is if you write @tantek then how can you automatically figure that you need to go parse tantek.com?
#
[kevinmarks]
it is s legitimate term for something you don't ever want to share
#
aaronpk
ludovicchabant: I have basically an address book in my site that lists people and their websites and their nicknames
#
[tantek]
But you do share it by displaying on your site
#
aaronpk
or my nicknames for them
#
[tantek]
Kevinmarks does “petnames” assume private use only?
#
aaronpk
all of my contacts have URLs on my site too, tho they don't get added to any feeds
#
[grantcodes]
So you could give tantek a rude nickname if you are so inclined 😛
#
aaronpk
oh I made them private :)
#
[tantek]
Ludo, did you check /POSSE to see if there was anything about your 2nd q?
#
[grantcodes]
But more realistically it might be cool to have relations as alternate nicknames, eg. @mywife @mydad etc...
#
[tantek]
Grant, yes that’s the personal phone model I think
#
[tantek]
Or just “mom” or “dad”
#
[grantcodes]
yes, just whatever works for you 🙂
#
[tantek]
Ludo, re: “doesn’t have an account”
#
sknebel
aaronpk: old ones are still public? at least I got a webmention yesterday or so for my address book entry, which still works
#
aaronpk
oh maybe
#
ludovicchabant
[tantek]: I think Aaron answered my question now that I know his CMS has an address book. But I still think there’s some UX exploration to be done for this kind of thing, especially when you first mention someone
#
aaronpk
first mentions with no context are actually very rare
#
[tantek]
Agreed. No obv answer for when someone lacks an account on a system
#
aaronpk
usually I see someone repost something as the first time i'm seeing a new domain/username
#
aaronpk
also most of the time I don't need to type usernames at all when replying to things, because they get linked up with in-reply-to
#
aaronpk
like if you look at https://aaronparecki.com/replies there are almost no @-mentions there at all
#
[tantek]
I’ve done all these: use their given name, use their given + family name (short full name), use their personal domain (without protocol), use their profile URL from another service (again without protocol)
eli_oat joined the channel
#
Zegnat
“given + family name” always catches me off guard. Some people here have done that in blog posts, and whenever they refer to me as “Martijn van der Ven” I feel it has gotten too formal :P
#
[tantek]
I’ve only had to do this when someone lacks a twitter profile
#
[tantek]
Which I guess is more people now than a few weeks ago
#
[tantek]
Though so far most of those folks already have their own personal domains so I’d likely just switch to referencing them that way
#
[tantek]
I’d say that’s a reasonable way to “quit” a silo btw. Delete all content, leave your account just as a forwarder / reference to your own domain
#
[tantek]
Maybe leave a pinned post in place with further explanation of why you left, etc
#
[tantek]
(Since 280 > 160 eg on Twitter tweet vs bio)
#
[tantek]
Zegnat for you I would likely use just Martijn or your domain
#
[tantek]
If I was citing / sharing an article you’d written then I may use your “full name” so that anyone reposting my post would propagate your full name which is higher fidelity across more contexts
#
aaronpk
which domain lol
#
[tantek]
The one with his massive h-card of course 😊
#
Zegnat
Sure, for citing and stuff full name makes sense. I meant just in the middle of a sentence.
#
[tantek]
Right, in middle of a sentence just a given name makes sense as it has the context of that sentence (and likely more)
#
[tantek]
Aside/past topic, I was looking for where I’d made a note of “translate @-name to URL” as a pluggable function for my autolinker but I couldn’t find it. I do think that that’s the right idea (eg better than passing in an array of nickname/URL pairs)
#
[tantek]
Worth adding to /autolink#Brainstorming (and thought I had but obviously it’s not there)
#
[tantek]
Likely a lot from today’s autolink discussion that could be added there
#
Zegnat
shakes fist at PHP resource type
#
Zegnat
Who came up with resources as a single type?! To who did this ever make sense? https://gist.github.com/Zegnat/e1d7ee427a7d6b04c724f4f65e49d28d
dougbeal|mb1 joined the channel
#
Zegnat
I’d love any of the PHP devs in here to tell me this can be done in a better way ...
#
aaronpk
[cleverdevil] shouldn't the prompt on https://www.indiepaper.io explain to log in with your microsub server URL instead of your website?
#
sknebel
lol,I think that's the third time in the past 7 days or so someone tells him that
eli_oat joined the channel
#
[tantek]
What’s a php resource type? Never heard of it
#
[tantek]
I’m a beginner php dev at best, preferring to use a small subset :)
#
Zegnat
If you have ever opened a file with fopen(), the result of that function call is what PHP calls a resource
#
[tantek]
Yeah I have /Falcon code that opens files
#
[tantek]
then hands it to DOMDocument for parsing
#
Zegnat
Often resources are pointers to things outside of PHP itself. E.g. the resource created with fopen() is just a memory thing pointing to whatever you opened. Meaning you can handle really big files without PHP having to read the entire file into a string.
#
Zegnat
And you can write to it, appending to a file on your filesystem, without having to open and rewrite the entire file. Just nice stuff like that.
#
Zegnat
But the actual resource *type* can be a file opened with fopen(), but also a pointer to a MySQL server opened with mysql_connect().
#
Zegnat
So that’s where things get interesting.
#
[tantek]
backs away slowly
#
Zegnat
When you pass a thing to a function that wants a resource (true === is_resource($thing)), the function has no idea what you passed to it. Is it a file it can write to? (That’s what most will want!) Or is it a MySQL server connection that it can’t do anything with.
#
Zegnat
And figuring out exactly what resource was passed in is a huge pain.
tomaw12 joined the channel
#
Zegnat
Joys of trying to standardise interop between PHP frameworks, [tantek] ;) https://groups.google.com/forum/#!msg/php-fig/ThSxlGT8i14/okN-bhTUAwAJ
#
boffosocko.com
edited /Quitter (+755) "quiiter.no shutdown notice"
(view diff)
#
boffosocko.com
edited /site-deaths (+661) "/* Upcoming */ Quitter.no"
(view diff)
[chrisaldrich] joined the channel
#
[tantek]
Zegnat, perhaps “resource” is a poor abstraction if it’s such a pain?
#
Zegnat
It is.
[kevinmarks] joined the channel
#
[tantek]
Autocomplete is different from autolink
#
[kevinmarks]
Note that Facebook autolinks plain names if they're in your friend list too (dynamically autocompleting as you type)
#
[kevinmarks]
It does both
#
[kevinmarks]
Same way Gmail/apple mail does - where the names become lozenges
#
Zegnat
I am a huge advocate for using the SplFileObject class instead of fopen() for files. It is a much more specific abstraction of files, can easily be typed checked against, and is even easier to use in some cases. (You can simply foreach loop on it to get all the lines of text!)
#
Zegnat
So if you ever need file handling apart from reading an entire file into a string, I recommend you check out https://secure.php.net/manual/en/class.splfileobject.php
#
Zegnat
Sadly, PHP projects consisting of code that has been copied around since PHP 3 mean lots of PHP devs do not realise abstractions like this are just part of the language :(
eli_oat, snarfed, eli_oat1, cweiske and [jgmac1106] joined the channel
#
Kongaloosh
hey snarfed! do you mind if I ask you a question about bridgy-fedrated? I'm looking at my web-finger and it's saying my hub is bridgy-fed. Is that correct? that's not my actual hub, but it's what generated.
#
snarfed
hi Kongaloosh! on a call, can talk more later
#
Kongaloosh
thanks :)
[cleverdevil], benwerd, eli_oat and iasai joined the channel
snarfed joined the channel
#
[tantek]
Except why use a silo for a conversation instead of “just” using the web?
eli_oat joined the channel
#
[tantek]
Hey Kongaloosh! Good to see you here!
#
Kongaloosh
:) Hey tantek! It's good to be back.
#
snarfed
ok Kongaloosh. re bridgy fed, you were asking about your websub hub? you can have your site advertise any hub you want. bridgy fed doesn't actually care about it, you just need it for mastodon etc to federate with your site and show your posts inside mastodon. (which even then is difficult and unreliable. you can start learning more at https://github.com/tootsuite/mastodon/issues/1441#issuecomment-302969948 )
#
Loqi
[Gargron] >an Atom feed with activitystream data Just an Atom feed will do too, but it needs to contain a link to a Pubsubhubbub hub >webfinger support Yes. Link to Atom feed, link to profile, link to salmon, magic key >an XRD at .well-known/host-...
#
Kongaloosh
snarfed++
#
Loqi
snarfed has 65 karma in this channel over the last year (121 in all channels)
#
Kongaloosh
thanks snarfed!
#
Kongaloosh
I was confused about mastodon and whether or not it was me, or if it was just kind of flaky right now.
#
[jgmac1106]
If I try to remote follow someone from jgmac1106@jgregorymcverry.com it just redirects me to my homepage.....I end up just having to go to my mastodon.social accont
#
snarfed
Kongaloosh: bridgy fed is decent at propagating replies, likes, and reposts (boosts) back and forth. it doesn't help with propagating *posts* back and forth, which users also expect. that's kind of a critical UX flaw
#
Kongaloosh
that's the hub's responsibility, right?
#
snarfed
eh it's somewhat more than websub, it's also activitypub, and (sadly) implementation details
#
Loqi
[snarfed] #18 figure out user and post discovery
#
aaronpk
I made some good progress on what could be turned into a service that handles delivering your posts
#
snarfed
ooh interesting
#
aaronpk
I haven't touched replies at all yet though haha
#
snarfed
[jgmac1106]: you mean trying to follow a mastodon user from your site, via bridgy fed? yeah it doesn't support that. PRs welcome! https://github.com/snarfed/bridgy-fed/issues
#
aaronpk
but I now have a simple service that can push stuff out via activitypub, and you can basically map your domain to it like bridgy fed
#
Kongaloosh
huh, interesting. yeah, that issue describes what I was doing. I was logging onto mastodon and searching for @kongaloosh.com@kongaloosh.com
#
snarfed
aaronpk: heh, nice that they're so complementary. too bad it'd probably be hard to unify the two UXes
#
aaronpk
none of this is a good UX haha
#
snarfed
heh true
#
Kongaloosh
I'm able to discover myself but end up with a wait for verification
#
aaronpk
but that's more a fault of mastodon/activitypub really wanting to be a full-stack thing rather than a building block
#
[tantek]
Snarfed would it be reasonable to consider supporting discovery at Bridgy fed instead?
#
snarfed
and worse it's no longer an itch for me at all since the one person i really wanted to follow is back to twitter now
#
[tantek]
Eg [tantek].com@fed.brid.gy
#
snarfed
[tantek]: maybe? sure! the key problem is ^ (my own motivation)
#
snarfed
PRs always welcome
#
[tantek]
That kind of discovery would avoid burdening everyone with erbfinger salmon xrds wellknown magic signature etc on their own site
#
aaronpk
true but then you don't own the identity
#
[tantek]
That’s how proxies often work
#
aaronpk
I managed to make mine work by adding two static files to your web server
#
[tantek]
It’s how UUCP email used to work for example with ! Instead of @ lol
#
[tantek]
Proxies don’t mean you don’t own the identity
#
snarfed
yeah, offloading the functionality to proxies while still preserving the identify ownership of the domain is the key value (and sometimes challenge)
#
aaronpk
anything @fed.brid.gy has the same problem the rest of the fediverse is seeing when an instance gets shut down
#
snarfed
aaronpk: agreed, bridgy fed usually boils down to two URL redirects. hopefully similar difficulty to two static files.
#
[tantek]
Also @ @ identities are ugly and not worth preserving long term any way
#
snarfed
bridgy fed doesn't use @fed.brid.gy identities. they're always @[yourdomain]
#
[tantek]
No one cares about ! X ! Y email addresses for example for quite some time
#
snarfed
(redirect/static file still requires gen 1 or 2, but meh)
#
aaronpk
I managed to trick the system by combining the webfinger and activitypub profile into a single file
eli_oat joined the channel
#
[tantek]
Basically bad UX like that *should* be treated as ephemeral and not worth preserving
#
[jgmac1106]
thx [snarfed] I don't really know how it all supposed to work...reading the getting started guide I am wondering if I still need to add the atom feed plugin...my atom feed looks good
#
aaronpk
so this file acts as both the webfinger response as well as the activitypub actor 😂 https://avocado.lol/.well-known/user.json
#
Loqi
AnAvocado
#
Kongaloosh
snarfed: do you think that it's not really worth the effort to try federating right now?
#
[tantek]
AnAvocado?!? Wat
#
snarfed
[jgmac1106]: honestly getting your site to truly federate with mastodon etc via bridgy fed is still difficult and unreliable. i'd probably recommend posse at this point unless you really care about the difference
#
snarfed
(and Kongaloosh)
#
[tantek]
I expect someone will eventually patch Mastodon to follow any Atom+Websub publisher
#
[tantek]
Just as Statusnet did many many years ago
snarfed joined the channel
#
Kongaloosh
Cool. On labour day I was noodling with it and trying to get hub communication and things going, but it seemes like I can't reliably get subscriptions to my feed *shrugs*
#
[tantek]
And on the other end, can Microsub servers follow Mastodon profiles?
#
aaronpk
that'd be a trick haha
#
aaronpk
activitypub isn't really set up to make that easy
#
[tantek]
Do we have anyone doing automatic POSSE to Mastodon? Or a summary of how to?
#
aaronpk
since everything assumes you have *one* inbox, which is used for both getting mentions, accepting follow requests, and getting posts from people you follow
#
[jgmac1106]
I do it using WP plugins and through OStatus
#
aaronpk
but I could easily make my new proxy thing push posts into an aperture channel
#
aaronpk
actually it already basically does that for me
#
snarfed
[tantek]: yes. known plugin, https://www.arush.io/?p=94127 , maybe others
#
[tantek]
Probably worth it so others don’t have to struggle as much
#
Loqi
[Amanda] If this works correctly, I can now automatically syndicate to Twitter, Micro.blog, and Mastodon. Just need to work on convereting Mastodon replies, boosts and favorites to webmention replies, reposts, and likes. Facebook is the only off-limits platfo...
#
[tantek]
[jgmac1106] can you add yourself and setup to ^^^?
#
[tantek]
snarfed++ thanks!
#
Loqi
snarfed has 66 karma in this channel over the last year (122 in all channels)
#
[tantek]
Is anyone who is POSSEing to Mastodon then also doing /backfeed back to their original posts?
#
[jgmac1106]
will do but I will defer to [pfefferle] on how oStatus, salmon, and the other plugins all work to POSSE... I really don't what happens with jgmac1106@jgregorymcverry.com I know I see the post since I follow myself and the account gets followers...but that is all I know
#
[tantek]
Aaronpk re: would be a trick - why? I though Mastodon profiles also had Atom+websub support
#
[tantek]
[jgmac1106] even a minimal description of your setup (which CMS + plug-ins + config you had to do ) would be helpful!
#
aaronpk
maybe? I don't know how much I would invest in building stuff on the atom side right now, since they are basically treating it as legacy support
#
[tantek]
Sure. I’ve been treating Atom as legacy support since the second time I launched support for it in 2010 😂
eli_oat1 joined the channel
#
[jgmac1106]
I think something like indieweb.xyz could be spun up in a federated but decentralized Mastodon like environment,just hve different columns for different tags....heck one could technically just POSSE everything to this chat if you know all the Loqi triggers for different rooms
eli_oat joined the channel
#
Kongaloosh
side note: I'm finding the documentation for most of the pubsubhubbub services are also pretty confusing.
#
@jgmac1106
Like I know typing webmentions goes right to the dev channel. I don’t need a Mastodon like service. I think we can build decentralized approach where folks always own their content from their own domain (http://jgregorymcverry.com/6438-2/)
(twitter.com/_/status/1037048400351514624)
#
[tantek]
Kongaloosh yes that’s been my experience too
#
Kongaloosh
like, it's very confusing to tell what the requests are supposed to be and what the responses should contain.
#
[tantek]
I believe that’s why Aaronpk wrote up a much better “how to use websub as a publisher” documentation in the wiki
#
Kongaloosh
so when things break, or just don't work from the start you don't exactly have many debug leads
#
aaronpk
here's my hub, I tried to make its own docs easy to understand https://switchboard.p3k.io/docs
#
[tantek]
On mobile so IDK the url
#
aaronpk
I also wrote this up as a more thorough guide https://indieweb.org/How_to_publish_and_consume_WebSub
#
[tantek]
That’s the one ☝
#
Kongaloosh
aaronpk: that's so much better than the superfeedr docs, oh man.
#
Kongaloosh
aaronpk++
#
Loqi
aaronpk has 105 karma in this channel over the last year (312 in all channels)
#
jgregorymcverry.com
edited /Mastodon (+516) "/* POSSE */ adding myself"
(view diff)
#
aaronpk
thanks! I had the same problem at first!
#
Kongaloosh
I think I've actually narrowed it down to what's broken now. I made a little superfeedr subscriber which is able to subscribe to my hub: a bunch of mastodon instances are able to see my federation, but there seems to be something messed up in mastodon.
snarfed joined the channel
#
Kongaloosh
it's showing me as following @kongaloosh.com@kongaloosh.com, but that the profile also has zero followers and zero toots.
jackjamieson joined the channel
#
aaronpk
that's normal
#
aaronpk
it only shows followers and toots that it already knows about
snarfed and KartikPrabhu joined the channel
#
Kongaloosh
ah, actually, I guess I have a question about formatting.
#
Kongaloosh
is rel="self" supposed to be a feed, or is discovery done for feeds on rel=self?
#
Kongaloosh
so if my hub.url is my site, will whatever's making the request look for, say, "application/atom+xml" to consume?
#
Kongaloosh
or will it make a request expecting the site to return an atom feed?
#
[tantek]
Pretty sure Websub works just fine with your HTML h-feed these days
leg joined the channel
#
gRegorLove
I have rel=self in my notes h-feed
[chrisaldrich] joined the channel
#
ludovicchabant
[tantek]: FWIW I'm doing auto-POSSE to Mastodon, but no back-feeding or whatever
KartikPrabhu joined the channel
#
[tantek]
Ludo very cool! Which CMS + plug-ins if any?
[metbril], [pfefferle] and benwerd joined the channel
#
ludovicchabant
I’m using a tool I made called SiloRider
#
Kongaloosh
[tantek]: that's what I thought, but *should* and *are* seem to not overlap entirely :'D
#
ludovicchabant
It’s CMS agnostic since it’s just reading your published HTML and going from there
#
Kongaloosh
ludovicchabant: that's an excellent header image :P
#
gregorlove.com
edited /site-deaths (+756) "/* Upcoming */ +unixcorn mastodon"
(view diff)
#
ludovicchabant
Thanks :) It’s very early though — it needs better auto formatting of posts (especially when handling links)
#
ludovicchabant
I’m adding support for POSSE’ing to Facebook and Instagram, and sending webmentions
[grantcodes] and benwerd joined the channel
#
[grantcodes]
ludovicchabant: If you figure out Facebook posse now that they killed the api you will be ahead of everyone else!
#
[grantcodes]
But looks awesome!
#
[grantcodes]
ludovicchabant++
#
Loqi
ludovicchabant has 1 karma over the last year
#
Kongaloosh
I have given up on caring about facebook posse.
#
Kongaloosh
mostly because there's been a pretty heavy diaspora to twitter it seems
#
gregorlove.com
edited /site-deaths (+329) "archive Bumpers"
(view diff)
[kevinmarks] joined the channel
#
gregorlove.com
edited /site-deaths (+18) "archive Storify"
(view diff)
kaushalmodi joined the channel
#
kaushalmodi
Hello all
#
kaushalmodi
I'd like an "updated" field at the very top level of the jf2feed.json that says when that feed was updated.
#
kaushalmodi
But the spec says "updated MAY be present on any entry object which is a direct child of the top level feed object. If present, this property MUST be a single string value and MUST be formatted as specified by [ISO8601]. "
#
kaushalmodi
>> "which is a direct child of the top level feed object"
#
kaushalmodi
so.. I cannot have "updated" in the top level object?
#
kaushalmodi
or, to put it other way, if I have an "updated" key in the top level object, will that invalidate the whole feed?
#
gregorlove.com
edited /site-deaths (+81) "archive Foodspotting"
(view diff)
benwerd joined the channel
#
gregorlove.com
edited /Foodspotting (+197) "past tense, site-deaths"
(view diff)
snarfed joined the channel
#
gregorlove.com
edited /site-deaths (+495) "archive Yahoo Messenger, inline download chat history instructions"
(view diff)
#
[tantek]
Gregorlove++ for wiki gardening!
#
Loqi
Gregorlove has 20 karma in this channel over the last year (102 in all channels)
#
Zegnat
kaushalmodi, interesting question. I don’t think it would invalidate the whole feed (in that few checkers will stop parsing because of an additional object member). But jf2 is an almost-straight mapping of mf2, and h-feed does not have an updated property either: http://microformats.org/wiki/h-feed
#
Zegnat
I wonder, what is the usecase? It feels like feed readers haven’t actually used such an item for a long time, simply opting to always check the individual feed items for changes.
snarfed joined the channel
#
gregorlove.com
edited /site-deaths (+797) "archive Wikispaces, inline why and phased shutdown dates"
(view diff)
[davidmead], snarfed, eli_oat, jackjamieson and kaushalmodi joined the channel
#
kaushalmodi
Zegnat: Use case is to check when a site got last updated.
#
Zegnat
HTTP Last-Modified header? That should also automatically make it work for browsers / proxies / caching services, who do not track random parts of the HTML.
#
kaushalmodi
This is probably specific to my site generator (that can fetch remote JSON objs)
#
kaushalmodi
I fetch those using github/gitlab API (committed time)
#
kaushalmodi
For folks not using github/gitlab, I was wondering if there's a way to know the last update time using "some" JSON
#
kaushalmodi
I don't know how to parse a random URL's "HTTP Last-Modified header" in Hugo
#
Zegnat
is sadly leaving for bed.
#
Zegnat
I’ll think about it a bit more :)
#
kaushalmodi
No problem. Ping me if you have another way to do what I want.
#
kaushalmodi
I might just resort to suggesting a custom Hugo output format in JSON.
#
kaushalmodi
Folks interested in getting listed on that page (and not using github/gitlab) will simply need to auto-publish a little JSON on their site root containing the update time.
[jgmac1106], [eddie], benwerd and [kevinmarks] joined the channel
#
[kevinmarks]
You can follow mastodon profiles because they have h-feed markup
eli_oat1 joined the channel
#
[kevinmarks]
Etag/last modified support is a good thing to build
snarfed joined the channel
jackjamieson, benwerd and eli_oat joined the channel
#
@rubygems
jekyll-webmention_io (2.9.7): This Gem includes a suite of tools for managing webmentions in Jekyll: * Tags *… https://rubygems.org/gems/jekyll-webmention_io
(twitter.com/_/status/1037102698976477186)
snarfed, jackjamieson, [tantek], benwerd, [aaronpk], eli_oat1, renem, eli_oat and KartikPrabhu joined the channel