#dev 2022-11-28
2022-11-28 UTC
geoffo joined the channel
# [snarfed] I definitely need to finish https://github.com/snarfed/bridgy-fed/issues/305
jacky_ joined the channel
# [ender] ideal: JavaScript `fetch` or `XHR` API call
# [ender] is there a really really really easy way to display received webmentions for a self-hosted site? I read two blog posts about how to do this and i am still confused
# [ender] ++ snarfed
# [ender] thanks!
# [ender] oh no, didn't work...
# [ender] snarfed++
jacky_, gRegor, sp1ff and geoffo joined the channel
# @jsonbecker ↩️ http://micro.blog, combines a static site generator with a Micropub API, full support for webmentions, RSS feed, and ALSO gives you the ability to follow (and generate) ActivityPub, you can do it from your own domain, and native crosspost to Tumblr/Twitter/Linkedin/Medium. (twitter.com/_/status/1597070947768733696)
jacky_, gRegorLove_, gRegorLove__, gRegor, geoffo, mro and kushal joined the channel
# [capjamesg] ↩️ I didn't actually need to say Python here. I was going to say there are a lot of libraries that implement webmention functionality so if you ever need to do anything server-side with webmentions there's probably some code to help (I mentioned Python beacuse I worked on the Python webmention sender :D).
mro, gRegor and kloenk joined the channel
# Loqi [Esther] This is amusing. Websites are struggling with the crawler requests from Fediverse instances when a new post propagates through the network. https://www.jwz.org/blog/2022/11/mastodon-stampede/Now that blogs and personal websites might see a revival, t...
# Loqi It looks like we don't have a page for "thundering herd" yet. Would you like to create it? (Or just say "thundering herd is ____", a sentence describing the term)
# IWDiscordRelay <jacky#7226> capjamesg: the capture from nginx might be duplicating it - had that issue before
# IWDiscordRelay <capjamesg#4492> Capture?
jacky and [manton] joined the channel
# IWDiscordRelay <jacky#7226> The signed version would be fetched from the publisher upon post creation and then maybe embedded into the post
# IWDiscordRelay <jacky#7226> I guess that still runs into the issue of the stampede
# [schmarty] yeah this is an age-old problem of "here's the content i got from fetching this URL at this time i swear"
# IWDiscordRelay <jacky#7226> I have some relatively light caching on my site (keep for an hour and use etags based on checksums of some data)
# IWDiscordRelay <jacky#7226> Lol yeah
# IWDiscordRelay <jacky#7226> Hmm
geoffo joined the channel
# [KevinMarks] though cross-domain caching is not supported by browsers so you'd have to put it under a single domain anyway
# [KevinMarks] Mastodon does something like that for the posts (each instance caches them and embedded media), it could do that for link previews for a url. Are we sure the thundering is not happening client side in mastodon?
chenghiz_ joined the channel
# [aciccarello] It's because each follower's instance makes a request
# [snarfed] heavily discussed in https://github.com/mastodon/mastodon/issues/4486#issuecomment-395076695, including how/whether to trust remote previews (conclusion: no), etc
# Loqi [snarfed] i noticed this recently too. >1k requests in <45s, >25qps. not a disaster, my site handled it fine, but still, noticeable. small thread on it here: https://mastodon.technology/@snarfed/100119606571241751 , cc @ashfurrow @neekz0r.
<img width="530" ...
jacky joined the channel
jacky joined the channel
# Loqi It looks like we don't have a page for "microcaching" yet. Would you like to create it? (Or just say "microcaching is ____", a sentence describing the term)
# aaronpk microcaching is a technique of caching a web server response for a very short period of time to reduce the effects of the [[thundering herd]] problem
geoffo joined the channel
# [ender] capjamesg++
gRegor, jacky and [jacky] joined the channel
# [KevinMarks] more tips on scaling Mastodon https://hazelweakly.me/blog/scaling-mastodon/
mro joined the channel
neceve joined the channel
neceve joined the channel
# IWDiscordRelay <jacky#7226> I have yet to move to that
# IWDiscordRelay <jacky#7226> my hope is to use that to make syndication a bit more 'invisible', i.e: I could sign into something like bridgy using my site, check some boxes on the kind of places I'd like to publish to and go from there
# IWDiscordRelay <jacky#7226> it _is_ a bit willy-nilly but I'd added support to /Koype to allow for adding syndication targets over Micropub using a custom action `add-syndication-target` (in the spirit of https://github.com/indieweb/micropub-extensions/issues/40#issuecomment-1011492547, still working on it at https://git.jacky.wtf/indieweb/koype-next/issues/4)
# [KevinMarks] Instance probing https://infosec.exchange/@malwaretech/109423683872990336
# Loqi [Marcus Hutchins :verified:] I wonder if this will work
https://test.malwaretech.com/mastodon.php
# [KevinMarks] (only works when viewed in mastodon timeline)
# aaronpk `curl -H "User-Agent: http://hacked.example/" https://test.malwaretech.com/mastodon.php`
neceve joined the channel