[-] Nothing4You@programming.dev 2 points 2 years ago

there seems to be a codeberg mirror but it's not updated continously: https://codeberg.org/LemmyNet

[-] Nothing4You@programming.dev 2 points 2 years ago

you shouldn't reuse domains on the fediverse for a new instance anyway, subdomains are fine though: https://programming.dev/comment/14173239

[-] Nothing4You@programming.dev 2 points 2 years ago

you can only set a community to only allow local users, not prevent users from interacting with remote communities.

you'd have to either disable federation or set up a script to automatically remove all remote communities, but that also won't be a per user thing, just a per instance thing.

[-] Nothing4You@programming.dev 2 points 2 years ago

You basically can't if your instance was set up before 0.19.4, as there won't be any association between users and uploads for older uploads. You also can't do this without breaking thumbnails everywhere unfortunately.

The latest Lemmy version has a fix where thumbnails now are actually stored at a reasonable resolution for thumbnails, but old thumbnails may be quite large, and this does not retroactively shrink older thumbnails.

It's possible to pull image aliases from the DB and ignore them when iterating over aliases within pict-rs, but you these will only be manual uploads, not automatic uploads like generated thumbnails. For posts by local users, deleting thumbnails will also end up breaking them for 0.19.5+ instances, as they should reuse the original thumbnail url.

[-] Nothing4You@programming.dev 2 points 2 years ago

lemmy.ml doesn't use cloudflare, that's strange.

i've also never had issues with this when looking at instances that do use cloudflare.

[-] Nothing4You@programming.dev 2 points 2 years ago

pretty much, yeah. lemmy has a persistent federation queue instead of fire and forget requests when activities get generated. this means activities can be retried if they fail. this allows for (theoretically) lossless federation even if an instance is down for maintenance or other reasons. if mbin has a similar system maybe they could expose that as well, but unless the system is fairly similar in the way it represents this data it will be challenging to integrate it in a view like this without having to create dedicated mbin dashboard.

[-] Nothing4You@programming.dev 2 points 2 years ago

at least the image resizing topic has recently been fixed in lemmy, thumbnails sizes are limited (at the time of thumbnail creation) in the latest release. I'd have to look closer at the other stuff, the api part is unlikely to have changed and will affect all frontends, but js part should differ depending on the front end. some instances already use other frontends by default and there is also a replacement for lemmy-ui being worked on (lemmy-ui-leptos), but I don't know how they compare. either.

it should be taken into account though how much of this is cacheable as well, as it will then typically only affect the first load for the static files.

I can totally understand the issues in general though, I've been living with a 64kbps uplink for several years in the past.

[-] Nothing4You@programming.dev 2 points 2 years ago

this doesn't just affect lemmy.ml.

it seems that lemmy.ml -> lemm.ee was somehow fixed yesterday, but there are several other instances that also have issues sending to lemm.ee:

  • hexbear.net: was broken since 2024-10-23, fixed since 2024-10-25
  • lemmy.blahaj.zone: broken since 2024-10-24
  • lemmy.ml: was broken since 2024-11-01, seems fixed since 2024-11-16
  • startrek.website: broken since 2024-11-15
[-] Nothing4You@programming.dev 2 points 2 years ago

does it work if you search again?

search for remote content sometimes doesn't show up the first time you try, searching again just after that can help.

if the channel still doesn't show up, does searching for an individual video work?

[-] Nothing4You@programming.dev 2 points 2 years ago

I'm not familiar with n8n but it's fairly straightforward on the API side.

You'll need a session token, also known as JWT, which you can get from logging in.

You typically don't want to do a login for every post, so you'll want to store that as a persistent value.
For authentication, you can pass the header authorization: Bearer {jwt}, with {jwt} being the session token.

https://join-lemmy.org/api/classes/LemmyHttp.html contains the API documentation.

You'll need to figure out the id of the community that you want to post to.

If you need to look it up, you can use getCommunity to fetch its details. Afterwards you can use createPost to submit it.

The form links for the methods explain the request body json values that should be provided.

[-] Nothing4You@programming.dev 2 points 2 years ago

photos will never be pngs unless someone intentionally converts them to that format, as pngs are much worse than jpgs for storing this type of image. pngs are much better for computer generated images, such as screenshots, drawings, etc. you can also losslessly compress pngs with tools like pngcrush without converting them to jpg.

[-] Nothing4You@programming.dev 2 points 2 years ago

it's like @Xyre@lemmus.org described. old content does not get federated unless there is new activity on it and someone on your instance is subscribed to the community it happens in.

this isn't anyone's fault, it's just a matter of the instance not being around that long that some historic content will be missing.

view more: ‹ prev next ›

Nothing4You

0 post score
0 comment score
joined 2 years ago