#dev 2022-01-19
2022-01-19 UTC
jacky and Matt[m] joined the channel
JBritSteele joined the channel
# [snarfed] ^ all the different avatar/icon options are fun, but it's worth emphasizing that browsers and webmention receivers each have their own rules (algorithms) for finding the favicon/profile picture that they should display for a given site/author, right? https://en.wikipedia.org/wiki/Favicon#Standardization and https://microformats.org/wiki/representative-h-card-parsing , respectively
KartikPrabhu, KartikPrabhu1, Seirdy, jacky, jessealama and [tonz] joined the channel
# [tonz] I’m writing a small personal micropub client in php. I use it to post to my WordPress Micropub endpoint, to create entries. I send posts to the end point as form-urlencoded. Things go fine unless the html content contains an SVG statement. Whenever an SVG statement is in the submitted HTML for the h-entry, the end point returns a 403 error. Is there something in the Micropub spec that explains this? Any top of head suggestions for
jessealama joined the channel
# [tonz] added an issue to be sure. https://github.com/indieweb/wordpress-micropub/issues/272
typ1cal_c0ffxe3 joined the channel
# @CodeFoodPixels ↩️ It's all done with webmentions! I wrote a post about that here:
https://lukeb.co.uk/blog/2021/03/15/no-comment-adding-webmentions-to-my-site/ (twitter.com/_/status/1483755546553593857)
Tommy1, tetov-irc, jacky and Loqi joined the channel
# [KevinMarks]1 yes, it's one of those tricky edge case things always
Guest6 joined the channel
# [KevinMarks]1 it's a similar case to etag/LastModified in that you want to be handing the server a token that identifies the boundary you last saw rather than an offset into the list, so it can handle the case when the list has changed
# [KevinMarks]1 trickier when the sort order isn't date though.
# capjamesg[d] jacky I really struggled with date-based cursor pagination. I resorted to using DB IDs instead. They probably shouldn't be autoincremented but oh well since I'm just building for me right now.
Seb[d] and KartikPrabhu joined the channel
# [aciccarello] capjamesg[d] Nice article on setting up the PWA metadata. Now you just need to get a service worker setup with a share target 😁
# [aciccarello] I guess you don't even need a service worker for share target.
# capjamesg[d] The web share targets confuse me. What do they allow me to do?
# capjamesg[d] Oh I see.
# capjamesg[d] I wonder if it works on Firefox iOS.
# petermolnar what is webactions?
# Loqi A web action is the interface and user experience of taking a specific discrete action, across the web, from one site to another site or application https://indieweb.org/webactions
P1000[d] joined the channel
# [tantek]1 uh really? that seems worth posting something about if that's true. has someone done that analysis / testing?
# [tantek]1 e.g. does it cross private-browsing barriers?
# [aciccarello] Does it generate that even without the user allowing notifications?
# [aciccarello] Oh, okay. I assumed it was always just for increasing traffic. Either way it's annoying how it's abused.
# [tantek]1 uh aaronpk re: "it's also unique to the site, so it's not like you can correlate users between different websites" that's not how "different websites" get around that. 1 - there are domains owned by the same entity that share info on the backend. 2 - there is adtech that asks domains to provide identifiers that they can then correlate on the backend.
# [tantek]1 uh that's worth at least a brief blog post
sp1ff joined the channel
JBritSteele joined the channel
# [tantek]1 right, that makes sense. iframes can't request notifications
# aaronpk yeah looks like there is a method to check the status https://developer.mozilla.org/en-US/docs/Web/API/PushManager#methods
# [tantek]1 exactly
JBritSteele and jacky joined the channel
# capjamesg[d] What is a service worker?
# Loqi service workers are scripts that run in the background, separate from tabs with the site open, and are commonly used for offline functionality and push notifications https://indieweb.org/service_worker
# capjamesg[d] What would an offline feed reader look like?
# capjamesg[d] The reader would have to save any interactions you want to make and then send them when you connect to the internet.
# capjamesg[d] And maybe make your feed and notification pages accessible. But only your first 20 entries or so.
# capjamesg[d] And maybe allow for posting but those changes will be synced when you connect to the internet.
# capjamesg[d] I don’t know much about service workers so I think I have quite the learning journey ahead.
# capjamesg[d] How does Quill do it aaronpk?
# [tantek]1 capjamesg[d], offline feed reader? you mean like nearly every podcast listening app?
maxwelljoslyn[d] joined the channel
# capjamesg[d] [tantek] Very true!
# capjamesg[d] I’m thinking about this from a Microsub perspective though.
# [tantek]1 not sure why people treat audio and text consumption differently in terms of offline
# capjamesg[d] So I would need to support saving posts locally.
# capjamesg[d] Yes. I understand the consumption side.
# [tantek]1 from the user experience side yes
# [tantek]1 people seem to "get" that their audio should be available offline but are willing to tolerate latency, delays, network foo to read text?
# capjamesg[d] I have never used a service worker before so I’m trying to piece together the best first steps in my mind.
# capjamesg[d] I think I’ll try and serve a page a user has visited from cache first and then figure out the rest once I have done that.
# capjamesg[d] It looks like adactio has written a book on service workers too!
# capjamesg[d] [tantek] by the way, I updated my feed reader interface to include navigation similar to Instagram:
# capjamesg[d] Still work to do but it’s a start.
# [tantek]1 capjamesg[d] I implemented a relatively minimal Service Worker during IWC SF
# [tantek]1 pretty sure my notes about it are there in the session description or maybe a link to the blog post
# capjamesg[d] What did you use it for?
# capjamesg[d] Oh I see your example on the service worker page. Exciting!
# [aciccarello] I've used service workers mostly for providing offline caching and occasionally request intercepting.
# capjamesg[d] Hm. I have just read that you can’t save data to local storage in a service worker…
# [aciccarello] No you can't but there is a caching api
Osvik[d] joined the channel
# @moondeerdotblog Updated plugin-conversation (aside from the README) to utilize Sass style parameters and statically fetched JSON feeds. These two comments happen to be reply tweets bounced over by http://Brid.gy: https://github.com/moonbuck/plugin-conversation (twitter.com/_/status/1483918542944800777)
jacky and strugee joined the channel
# [aciccarello] This library is really useful for PWA caching https://developers.google.com/web/tools/workbox/
# [snarfed] capjamesg you may be interested in https://snarfed.org/posting-to-the-indieweb-from-your-phone, old and hand wavy and micropub only but similar ideas
tetov-irc joined the channel
# [aciccarello] PWA install experience is still sub-optimal unfortunately
# [tantek]1 it's not really well specified from an ecosystem perspective tbh