#dev 2020-08-06
2020-08-06 UTC
# [tantek] hey folks using curl to archive pages to the Internet Archive, maybe switching to POST will work? see this comment? https://blog.archive.org/2019/10/23/the-wayback-machines-save-page-now-is-new-and-improved/#comment-385897
# [KevinMarks] i linked the docs for the new api on the page
dougbeal|mb1, geoffo, [chrisaldrich] and KartikPrabhu joined the channel
# [tantek] discussing WebSub: https://github.com/aaronpk/Aperture/issues/18
[fluffy], KartikPrabhu and beko joined the channel
# lahacker chrisaldrich++ for playing devil's advocate with jsonfeed
# lahacker i think the "JSON Feed was developed because so many developers prefer JSON over XML" quote is the biggest takeaway from https://gist.githubusercontent.com/manton/7a8e4a7cd295dc2e2bc2dd4afa30583d/raw/6b8ca0ca670b3008f4c0900baeef86b1b80f6ba4/jsonfeed_indieweb.md
# lahacker even though mf2-json is json it still retains the feeling of html
# lahacker cool, it does need a name and should be talked about -- jsonfeed is like tackling the problem from the consumer side -- microformats have poured so much time into the publish side -- yet it may actually be simpler to describe the publishing of jsonfeed -- and it may be harder to communicate the nuance of what is lost when you lost the composability component on the publish side
# lahacker i feel like if there's a standard mf2->"jf2" it kinda obviates jsonfeed
# lahacker i'll try to use XRay, Bridgy and JSONFeed to unify some kind of "cleaned" output
# lahacker is your code available?
# lahacker and that's WP-dependent?
# lahacker cool i see your `includes` directory
# lahacker is it modeled after XRay at all?
# lahacker so is the *-mf2.php going to get me to where i'm going?
# lahacker how are your tests working?
# lahacker oh i see
# lahacker mf2->jf2
# lahacker so i've been collecting tests from here and there and there's a surprisingly small number and they're all over the place
# lahacker it's a perfect example of when to use Test Driven Development if you ask me
# lahacker you provide the HTML, provide the JSON you think it should return and then make the code work
# lahacker and of course the test suite is the one thing all implementors share
# lahacker ok so as a part of doing this in a Jupyter notebook i'm trying to make it equally useful during software testing as well as documentorial (? documentational?) for the newcomer
# lahacker making the tests that is
# lahacker well for now even the html->mf2 test suite is weak
# lahacker doesn't cover all the cases
# lahacker so for the output jf2 i'm going to dig into those places and try to converge on some kind of similarities
# lahacker ok here's something
# lahacker i was going to say
# lahacker i don't have the immediate access to run your code (inside WP) so if you could find a couple or more examples of HTML, run them through your cleaner and then post the output to the wiki
# lahacker or a GH repo?
# lahacker i'll do the same for the others
# lahacker so we can talk about them without revolving it around my notebook
# lahacker ok
# lahacker i'll ask you when i'm ready
# lahacker unless you like my idea of finding a place to throw some real life input/outputs
# lahacker and don't say we need to find a name first ;)
# lahacker well then would you like to create a gist of your input/outputs and link to it from https://indieweb.org/jf2#Implementations
# lahacker ?
# lahacker probably more accessible and up-to-date than https://microformats.org/wiki/jf2#Implementations
AkyRhO and [chrisaldrich] joined the channel
# lahacker GWG i just grabbed Aaron's most recent entry for testing -- https://xray.p3k.io/parse?url=https://aaronparecki.com/2020/08/05/14/ -- can you gist me the output from parse this for just that page?
# lahacker or email it
# lahacker i just want to see roughly what the standout obvious differences between implementations
# lahacker angelo@lahacker.net -- thanks
# lahacker thanks
# lahacker GWG: first thing that stands out is mf2util includes replies in a "comments" property
# lahacker ah i saw that in the jf2 spec but i don't see it in XRay or your output
# lahacker gwg: where are you storing these references?
# lahacker gwg: so outside of the JSON in the gist i take it
# lahacker gwg: then why don't you have a `references` property with a couple of comments inside of it for aaron's post?
# lahacker there are h-cites on his post
# lahacker ah ok
# lahacker makes sense
# lahacker mf2util has it
# lahacker k THANK you
# lahacker gwg++
# GWG lahacker: If this helps... https://david.shanske.com/2020/08/06/consistent-microformats/
nickodd joined the channel
swentel, [KevinMarks], dckc, moppy, KartikPrabhu, [pfefferle] and [jeremycherfas] joined the channel
# [jeremycherfas] Can anyone point me to a good tutorial on how to enable mail sending from PHP in OSX; the ones I have found are all for Windows and most expect me to use an additional library, which feels like overkill.
[KevinMarks] joined the channel
# [KevinMarks] mail sending is hard now, because of spam. Effectively your mail will be marked spam unless you set up a lot of certs and signing stuff. Using a service to send sets this up for you.
# [KevinMarks] what's your use case for mail?
# [KevinMarks] if you want to send on behalf of the user, a mailto: link works to fill in an email in their client
gxt and geman joined the channel
# geman hiya everyone, great to see so many people here, I only recently found out about indieweb but wow does it feel like home, so much of what I have been contemplating myself you people have already written long wiki pages about (i.e. POSSE and PESOS) :-)
# geman anyways, I was wondering if anyone has any experience with, or knows about any tool or way to automatically (or semi-automatically) collect/publish tweets/threads that I write, and republish/archive them on micro.blog ?
[Rose] joined the channel
# geman ah yes, I knew I had seen it somewhere, yeah that should work, if I can find a good twitter->rss tool, seems to be quite a few
# geman hmm, is there a specific micro.blog support channel somewhere or can I ask questions about that here also? :-)
# [jeremycherfas] [KevinMarks] I want to be able to send myself an email when a cron job has run (or failed) and while the instructions for that say to add `MAILTO="me@example.com"` I imagine I need to somehow enable sending email somehow. Probably I wrong about that oo.
# [KevinMarks] What is granary?
# Loqi granary is the social web translator https://indieweb.org/granary
# [KevinMarks] @geman look at that for twitter to feed
# geman ooh, that does look like what I was looking for, and even available as a hosted service nice, thanks [KevinMarks]
# geman [jeremycherfas] I guess we're talking linux cron? yes your server needs to be able to send email for it to work, which is generally just a matter of installing postfix if it's not already installed. The harder problem after that is generally to get the email accepted and delivered and not marked as spam.
# [jeremycherfas] Right. I don’t mind having to look for it in spam.
# [jeremycherfas] And it seems I do actually have `mail` installed. Just testing now.
# geman yeah, if you can whitelist the sender and just want to send email to yourself you can probably skip the relay
# geman but if I recall correctly, depending on where you are trying to do this, a lot of ISP's and some VPS providers block sending email
# geman or rather, I think they block port 25, but I have not looked at this for some time
# [jeremycherfas] Thanks. I can see I am going to have to do a whole lot more reading.
swentel and [pfefferle] joined the channel
[michael_lewis] joined the channel
# [michael_lewis] When I send emails from my personal domain, it often ends up in people's spam folders. I was told this is because I send such a low volume of emails, which seems odd because it would suggest the solution to not being classed as spam is to start spamming people. Not particularly concerned, but you've got me wondering if its something else now, like needing an SPF record or something.
nickodd joined the channel
# superkuh As more and more domains centralize email in the handful of mega-corp hosted solutions the hosts have less and less reason to care about accepting mail from outside the walled gardens.
# superkuh It's not about setting up perfect signed email and all the new techs. It's not about having the same clean IP for a decade. It's just the same old network effect combined with profit motive.
# superkuh This is more of a mangerial change in the last 5 years than a technical one.
KartikPrabhu joined the channel
# hirusi[m] I'm thinking of the flow behind a `Reply`. So contextual content like the h-card of the original author, the specific content being replied to, the date-time the original author's content was published... do these things need to be implemented by a Micropub server and passed on to my static site? Like, if I wanted good UX, it would be the Micropub server attempting to find this info, correct? (Except a quote of the
# hirusi[m] content being replied to)
# hirusi[m] https://www.w3.org/TR/micropub/#h-new-reply
# hirusi[m] That makes sense. Ultimately, you still rely on the server to understand that info and pass it on
# hirusi[m] So the server has to support it
# hirusi[m] Hmm, interesting
# hirusi[m] More and more I do this, to me, it makes sense for someone to build a client+server rolled into one for the best UX.
# hirusi[m] I don't know if there's a Micropub server I could use that does this. My limitation being I run a static site. Very few options for this kind of workflow
# hirusi[m] Wondering how best to build a UI for a reply form on my Micropub client.
[grantcodes] joined the channel
# [grantcodes] hirusi: Yes it does
# [grantcodes] It might just be the setup on my personal site, but there's a bug somewhere where that context data it collects gets deleted sometimes
# hirusi[m] I might have to change my recommendation from Indiekit to Postr! Your endpoint also syndicates content and returns permalinks to syndicated content right?
# @depone @hallouberspace gibt es die Möglichkeit für IndieAuth den Header REDIRECT_HTTP_AUTHORIZATION zu erlauben? (IndieAuth Spec: https://indieauth.spec.indieweb.org/) (twitter.com/_/status/1291370880619220993)
# [grantcodes] Yeah there's plugins to do syndication
# [grantcodes] But I don't recommend the instagram one now.
# hirusi[m] Last I checked, Instagram does not allow creating posts using their API?!?!
# hirusi[m] Ok, so, https://indieweb.org/reply-context#Markup
# hirusi[m] If I'm *only* giving a u-url that I'm replying to, do we still need to nest it inside u-in-reply-to or is u-in-reply-to supposed to directly hold the URL?
# [jeremycherfas] Thanks, all. In the end, after a bit of digging, I discovered that I didn’t need to do any more setting up if I just want to get notifications here on my own machine from the terminal. Turns out cron had been dutifully sending emails all along, and I just didn’t know where to look for them. So for now, all is good.
dckc joined the channel
# [grantcodes] No, it used the private API that the apps use, but they've tightened that up too
# [grantcodes] If it's just a url, you can just use `u-in-reply-to` http://examples.tpxl.io/#reply
# hirusi[m] Oh I love this site already! Is this on the wiki? Sorry things are spread out quite a bit between mf2 and indieweb wikis, it can be a little difficult. 😅
# hirusi[m] grantcodes++
# [grantcodes] No, nothing like that is really on the wiki, which is why I made it 😛
# [grantcodes] Or it's there but all over loads of pages
[manton] joined the channel
# [jeremycherfas] Will do beko++
KartikPrabhu and geoffo joined the channel
# hirusi[m] grantcodes: no what I meant was if its linked to anywhere in the wiki, might be a good idea to link to it.
# [KevinMarks] Ah, email on the same machine is a simpler problem, yes.
# [grantcodes] Oh yeah, not sure if it's linked from the wiki
[MitchWagner], gxt and [Murray] joined the channel
# @depone ↩️ Versuche mich mit dem IndieAuth-WordPress-Plugin im Web auszuweisen, dieses benötigt den Header. Hier wird es bspw. beschrieben: https://wordpress.org/plugins/indieauth/#%0Ai%20keep%20getting%20the%20response%20that%20my%20request%20is%20unauthorized%0A (twitter.com/_/status/1291389842144845825)
Frosti joined the channel
# Frosti Hi, I've been working on coding a website in glitch, but I'm having trouble using .php, what services/techniques do you use to edit/code?
# Frosti https://tapestryfic.glitch.me
[tw2113] and [Chaitanya] joined the channel
# [Chaitanya] grantcodes++
[chrisaldrich] joined the channel
# [jeremycherfas] For now, a simpler problem is a better problem.
gRegorLove, swentie, swentel and [tantek] joined the channel
# lahacker GWG excellent find! Much to think about..
# @voxpelli ↩️ I use it for Express apps like https://github.com/voxpelli/webpage-webmentions#heroku-1 and https://github.com/voxpelli/webpage-micropub-to-github (twitter.com/_/status/1291425412481003520)
# @voxpelli ↩️ I have been running https://webmention.herokuapp.com/ on paid dynos for years now, and it constantly runs, 24/7 (twitter.com/_/status/1291427952098521095)
# Loqi It looks like we don't have a page for "application/mf2+json" yet. Would you like to create it? (Or just say "application/mf2+json is ____", a sentence describing the term)
# [tantek] application/mf2+json is an experimental MIME type for the canonical JSON output of a [[microformats2]] parser that is consumed by at least two independent implementations ([[XRay]], [[Granary]]), and published by at least the [[WordPress mf2 feed plugin]].
# Loqi It looks like we don't have a page for "WordPress mf2 feed plugin" yet. Would you like to create it? (Or just say "WordPress mf2 feed plugin is ____", a sentence describing the term)
# [tantek] application/mf2+json << XRay consuming code: https://github.com/aaronpk/XRay/blob/37e297d1143c37e5173253ec1ce352c706bb4828/lib/XRay/Formats/HTML.php#L97
# Loqi ok, I added "XRay consuming code: https://github.com/aaronpk/XRay/blob/37e297d1143c37e5173253ec1ce352c706bb4828/lib/XRay/Formats/HTML.php#L97" to a brand new "See Also" section of /application/mf2%2Bjson https://indieweb.org/wiki/index.php?diff=71883&oldid=71882
# [tantek] application/mf2+json << Granary consuming code: https://github.com/snarfed/granary/blob/368c14d51362e461d08a2414fde3cf55660b64e0/test_app.py#L197
# Loqi ok, I added "Granary consuming code: https://github.com/snarfed/granary/blob/368c14d51362e461d08a2414fde3cf55660b64e0/test_app.py#L197" to the "See Also" section of /application/mf2%2Bjson https://indieweb.org/wiki/index.php?diff=71884&oldid=71883
# Loqi WordPress Plugins are recommended plugins that can help make your site more IndieWeb friendly https://indieweb.org/WordPress/Plugins
# Loqi It looks like we don't have a page for "WordPress Microformats2 Plugin" yet. Would you like to create it? (Or just say "WordPress Microformats2 Plugin is ____", a sentence describing the term)
# [tantek] !tell GWG,aaronpk,snarfed I should have cc'd you on this but here you go: https://github.com/microformats/microformats2-parsing/issues/52
nickodd left the channel
# Loqi A tag reply is a special edit response to a post that tags that post with one or more tags, including possibly (or only) person-tags https://indieweb.org/tag-of
# [tantek] !tell GWG are you able to post /tag-reply posts from your site?
[manton] joined the channel
[chrisaldrich] joined the channel
# [tantek] A while ago I created labels for tracking where an issue is in the process but they've not really been used, and I've been blocked myself on not having the ability to post tag-reply posts to add labels to GitHub issues, but I've now added myself as interested and working on that: https://indieweb.org/tag-reply#Tantek
# Loqi GWG: [tantek] left you a message 13 minutes ago: I should have cc'd you on this but here you go: https://github.com/microformats/microformats2-parsing/issues/52
# Loqi GWG: [tantek] left you a message 7 minutes ago: are you able to post /tag-reply posts from your site?
# [tantek] and if there is a UI for posting a tag reply that would be great to screenshot and add to /tag-reply !
[Chaitanya] joined the channel
# [tantek] GWG, if you would like to backfeed support from Bridgy for when an issue is closed on GitHub, please add your support to https://github.com/snarfed/bridgy/issues/915
# [tantek] you may be interested in https://github.com/snarfed/bridgy/issues/833
# @ChrisAldrich It looks like @Automattic is dusting off their old p2 / o2 theme projects for a new remote working platform? Here's hoping that they consider Webmention support for true distributed cross-site @mentions.
https://boffosocko.com/2020/08/06/improve-your-remote-collaboration-with-p2-wordpress-blog/ (twitter.com/_/status/1291458434710138880)
jamietanna joined the channel
[snarfed] joined the channel
# Loqi [snarfed]: [tantek] left you a message 58 minutes ago: I should have cc'd you on this but here you go: https://github.com/microformats/microformats2-parsing/issues/52
# gRegorLove I think if you untag yourself in a FB photo it can't be added back?
# gRegorLove "Remove Tag" https://www.facebook.com/help/140906109319589
# [snarfed] backfeed is covered in https://github.com/snarfed/bridgy/issues/833. when i researched 2y ago, i couldn’t actually find that the API exposed individual label events that bridgy could consume. feel free to research and update that issue if it’s been added!
# gRegorLove "I want to untag myself" as an option in some places, not sure I understand the difference though https://www.facebook.com/help/196434507090362
# [snarfed] also just fyi for everyone here, i haven’t had time for new feature development on bridgy/granary etc (or even nontrivial debugging) for the last couple months or so, and realistically it’ll be another 1-2 mos before i do have any time for it. so PRs, research, issues, and any other help is welcome, as always!
[schmarty] joined the channel
# [schmarty] snarfed++
[KevinMarks] joined the channel
# [KevinMarks] Twitter was also AIM away messages without the chat part
KartikPrabhu and [tw2113] joined the channel