Lemmy v0.19.4 Release - Image Proxying and Federation improvements (join-lemmy.org)
from hal_5700X@sh.itjust.works to fediverse@lemmy.world on 07 Jun 2024 19:48
https://sh.itjust.works/post/20502293

#fediverse

threaded - newest

ptz@dubvee.org on 07 Jun 2024 19:58 next collapse

In order to improve interoperability with Mastodon and other microblogging platforms, Lemmy now automatically includes a hashtag with new posts.

👎🏻 No way to disable this if I don’t want hashtags cluttering up my posts. And worse, it’s Lemmy putting words in my mouth / speaking for me.

[Re: Image Proxying] The setting works by rewriting links in new posts, comments and other places when they are inserted in the database. This means the setting has no effect on posts created before the setting was activated. And after disabling the setting, existing images will continue to be proxied. It should also be considered experimental.

What an absolutely stupid way to do image proxying. Why not just dynamically re-write image URLs to use the proxy path before serving it via the API?

That way:

  1. It works with all content posted any time before/after the setting was activated
  2. It lets users decide whether they want to proxy or not
  3. Doesn’t break images if the home instance pict-rs is broken (which I’ve been seeing a lot of lately)

If you think “that’s not reliable” or “too hard”, I’ve been doing it successfully exactly that way in Tesseract with it’s image proxy/cache for over 8 months (on the front end…in a cave…with a box of scraps).

Mereo@lemmy.ca on 07 Jun 2024 20:57 next collapse

I agree. Lemmy is not Twitter like, it is Reddit like, it is a forum.

Max_P@lemmy.max-p.me on 07 Jun 2024 21:08 next collapse

Yeah the image proxy will stay off for me. Mangling user’s posts permanently is unacceptable, it’s like the whole HTML escaping thing again. You always want to store the original data in its original form that way you have the freedom to tweak the processing at runtime, and if you fuck it up the data isn’t permanently fucked up (again, like the 0.18 HTML crap that should never have happened).

Blaze@reddthat.com on 07 Jun 2024 21:13 collapse

Damn, I had forgotten about that

bevan@lemmy.nz on 07 Jun 2024 21:15 next collapse

The hash tag just adds the community name:

“The hashtag is based on the community name, so posts to /c/lemmy will automatically have the hashtag #lemmy. This makes Lemmy posts much easier to discover.”

Not really putting words in your mouth.

ptz@dubvee.org on 07 Jun 2024 21:35 next collapse

If I didn’t type it, it’s putting words in my mouth.

If I want a hashtag, I’ll type one. I don’t give a fuck about Mastodon, and I resent my experience being made worse to accommodate them.

noodlejetski@lemm.ee on 08 Jun 2024 10:25 next collapse

I resent my experience being made worse by reading this

Iapar@feddit.de on 08 Jun 2024 13:49 next collapse

Not everything is about you.

IronKrill@lemmy.ca on 08 Jun 2024 20:17 collapse

How is your experience worse if you’ll never see the hashtag?

Die4Ever@programming.dev on 07 Jun 2024 21:42 collapse

for reference, this is what it looks like on Mastodon, the post to !announcements@lemmy.ml it gets the hashtag for announcements

mastodon.social/…/112576601493225058

<img alt="" src="https://programming.dev/pictrs/image/2a66a8b1-75c4-4a23-82ea-79359c0294f6.png">

it’s not really part of the message text, it’s separate

Blaze@reddthat.com on 07 Jun 2024 22:01 next collapse

Thank you for this

[deleted] on 07 Jun 2024 22:19 collapse

.

taaz@biglemmowski.win on 07 Jun 2024 22:26 collapse

What a dumb way to do image proxying.

This is about proxying external images, URL rewrite won’t work unless the image is also downloaded and hosted by the instance (which seems even worse for many reasons).
Or am I missing something here?

ptz@dubvee.org on 07 Jun 2024 22:28 next collapse

You’re missing a lot.

I’ve done exactly what I described in my comment for the last 8 months: it’s been a UI feature of Tesseract since last October.

It proxies any image or direct video from any source you haven’t blacklisted. If you have the proxy option enabled in your settings, all image URLs are re-written to go through the proxy. If not, then it uses the regular URL directly. It also caches with an admin-defined policy.

taaz@biglemmowski.win on 07 Jun 2024 22:52 collapse

Oh interesting I will have to look how tessaract does it

ptz@dubvee.org on 07 Jun 2024 23:02 collapse

And anywhere it renders an image (markdown, posts, avatars/icons, banners, etc), the image source is set via imageProxyURL(url). There’s extra optional params for size and format if the image source is served by pict-rs.

bjoern_tantau@swg-empire.de on 08 Jun 2024 07:54 collapse

Lemmy will rewrite the image URLs when saving a post.

But instead the URL should be rewritten when loading the post. That way the original URL wouldn’t get lost and it would also work for old posts.

Rentlar@lemmy.ca on 07 Jun 2024 21:22 next collapse

Media

There is a new functionality for users to list all images they have previously uploaded, and delete them if desired. It also allows admins to view and delete images hosted on the local instance.

When uploading a new avatar or banner, the old one is automatically deleted.

Instance admins should also checkout lemmy-thumbnail-cleaner which can delete thumbnails for old posts, and free significant amounts of storage.

This is great news, and addresses what was until now a big shortcoming… a user had no way of managing uploaded images and admins had to crawl through the DB to manage or delete them.

ElectroVagrant@lemmy.world on 07 Jun 2024 23:27 next collapse

This is buried toward the bottom of the release notes so I’m bringing it up here:

Added instance-level default sort type

Any admins out there considering changing their instance sort settings or asking people on their instance if they’d like this changed, given that we can individually set sorting anyway? Taking into account the inclination of people to never adjust default settings (I remain deeply curious about this tendency, as an aside), I think it might be worth at least bringing up to one’s instance community.

If they decide they want it to remain the same, all good, and even better, it raises some people’s awareness that they can change it themselves.

Die4Ever@programming.dev on 08 Jun 2024 17:07 collapse

maybe some instances will want “New Comments” to be the default, like old forums

the inclination of people to never adjust default settings

yea lol so many people just will not change any settings on anything

muntedcrocodile@lemm.ee on 08 Jun 2024 03:25 collapse

How does automatic hastag inclusion work?

SorteKanin@feddit.dk on 08 Jun 2024 10:43 collapse

It just puts a hashtag with the community’s name at the end of the post. Like if you post in this community, it would have #fediverse at the end of the post.

muntedcrocodile@lemm.ee on 08 Jun 2024 11:46 collapse

Thats cool I guess seems that will help mastodon federation a lot. I dont see why we can’t add arbitrary hashtags for general post tagging tho.