jenniferplusplus,
@jenniferplusplus@hachyderm.io avatar

Practical solutions to the "don't share this on mastodon" problem:

  1. Include an image in the post, so mastodon doesn't fetch a link preview (you can do this yourself)
  2. Serve static assets from static files, not your app server (sys admins can do this)
  3. Mastodon adds some staggered delay to the open graph fetch (likely simple, but a dev needs to do it)
  4. The origin embeds the link preview and peers just use that (the difficult but correct solution, but gargron needs to agree to it)
box464,
@box464@mastodon.social avatar

@jenniferplusplus This is still my top blog post by far. There’s obviously a lot of interest in how this works. I really just wanted to know why some music sites showed an embedded player and others didn’t. It got out of hand. 😅

https://box464.com/posts/mastodon-preview-cards/

ernie,
@ernie@writing.exchange avatar

@jenniferplusplus I didn’t even realize this was an issue until I read the It’s Foss post.

I run a way less prominent site than It’s Foss and I run my images in a static setup. I’m extremely surprised that they don’t do this.

ernie,
@ernie@writing.exchange avatar

@jenniferplusplus I don’t want to blame them for this problem, but I do think they really need to reconsider how they handle image hosting.

nyquildotorg,
@nyquildotorg@fedia.social avatar

@ernie @jenniferplusplus I don't think the "include an image so it won't fetch meta" is universal to all of the fediverse.

I believe the issue with sites being hammered is more when every page served incurs a database hit because the CMS is doing stuff on the fly rather than anything specific to image hosting. (If your images incur a database hit I think you have bigger problems...)

The meta info is in the HTML, so every fediverse server (and even some fediverse clients) will fetch the entire page looking for meta to put in the preview. If your html is effectively cached this shouldn't be a problem. Mastodon should definitely mitigate how they can, but ultimately your hosting needs to handle requesting the same html file over and over and over without database overhead for each request.

ernie,
@ernie@writing.exchange avatar

@nyquildotorg @jenniferplusplus Yeah, poor caching is likely the culprit. I should note that I run into issues from the other side of the coin where things cache way too well, and it requires a couple steps to get the front page to refresh.

ernie,
@ernie@writing.exchange avatar

@nyquildotorg @jenniferplusplus I get slammed by Hacker News twice a month and I never have issues like they’re having

nyquildotorg,
@nyquildotorg@fedia.social avatar

@ernie @jenniferplusplus hacker news slamming is from users taking action. Mastodon slamming is from one single user taking one single action: posting a link.

nyquildotorg,
@nyquildotorg@fedia.social avatar

@ernie @jenniferplusplus I worded this badly. Hacker news causes thousands of people interested in seeing the link to click it, each one then causing a request to the remote server. On Mastodon, each server makes a request to the remote server whether anyone ever clicks it or not. All at the same time.

stefan,
@stefan@stefanbohacek.online avatar

@jenniferplusplus I understand that the issue with the last solution is trusting the server providing the information, with a potential for abuse.

One thought I shared elsewhere was adding an option for "trusted instances", see conversation here: https://stefanbohacek.online/@stefan/112367378286270975

I'd love to hear what folks think about that idea.

jenniferplusplus,
@jenniferplusplus@hachyderm.io avatar

@stefan yeah. There would be a lot of benefit to have more sophisticated trust assessments than just block or allow. This is one of them.

stefan,
@stefan@stefanbohacek.online avatar

@jenniferplusplus Great!

I left a note on an ongoing conversation here, if you'd like to share your thoughts.

https://gist.github.com/renchap/3ae0df45b7b4534f98a8055d91d52186?permalink_comment_id=5043741

thisismissem,
@thisismissem@hachyderm.io avatar

@stefan @jenniferplusplus I honestly think solution 5 is the way to go, everything else solves for just mastodon, but every fediverse software that needs link previews has this problem.

Back in the day embed.ly used to be that service for many startups.

jenniferplusplus,
@jenniferplusplus@hachyderm.io avatar

@thisismissem @stefan How would this service get funded? The fediverse is already financially unsustainable, adding in an unfunded centralized service seems like a recipe for disaster.

thisismissem,
@thisismissem@hachyderm.io avatar

@jenniferplusplus @stefan I'd hope that's where some partners like fastly or others may step up? Obviously funding this would be a thing to solve.

jenniferplusplus,
@jenniferplusplus@hachyderm.io avatar

@thisismissem @stefan I'm struggling to imagine a scenario where that doesn't turn into a Trojan horse for ad tech surveillance

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • khanakhh
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • osvaldo12
  • Durango
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • mdbf
  • kavyap
  • InstantRegret
  • tester
  • JUstTest
  • thenastyranch
  • cisconetworking
  • tacticalgear
  • cubers
  • everett
  • modclub
  • GTA5RPClips
  • anitta
  • Leos
  • provamag3
  • normalnudes
  • megavids
  • lostlight
  • All magazines