Cr4yfish

joined 2 years ago
MODERATOR OF
[–] Cr4yfish 2 points 2 years ago* (last edited 2 years ago) (2 children)

I JUST FOUND IT!!! https://join-lemmy.org/api/interfaces/LocalSiteRateLimit.html

Every instance sets own rates limit. You can get ALL RATE LIMITS for a specific instance through that enpoint.

Edit: When finding something in the docs you were looking for feels like an accomplishment, something's wrong with the docs :D.

Here's an example for Lemmy.world:

[–] Cr4yfish 1 points 2 years ago

Yeah but I think having a central post to aggregate common questions would be a benefit to everyone, especially new devs.

[–] Cr4yfish 1 points 2 years ago (1 children)

What's the exact problem with the pagination? Basically you set the page param to the page you want to receive. The amount of pages is unknown to the client, you just know how many per Page you receive (the limit).

However, I'd recommend to make infinite scrollers anyway.

[–] Cr4yfish 1 points 2 years ago

Testcomment with Nemmy

[–] Cr4yfish 1 points 2 years ago* (last edited 2 years ago)

I don't think they're documented anywhere. I resorted to just trying out the performance limits.

  • For posts I recommend going with 10 per page and loading the rest on demand.
  • For Comments try to only load a couple per request and then do a bunch of chained requests
[–] Cr4yfish 2 points 2 years ago

Pretty late to the party here, but I have an answer for you. There another parameter called "depth", you have to set that to "1" on the initial call. Then you only get "root" comments. Then, for each root comment, you call the API again with the parent id of said comment with the "depth" parameter set to depth+1 until there are no more comments.

So basically, you have to use recursion. If you want I can give you a code example from my App.

[–] Cr4yfish 2 points 2 years ago

Yeah, I'd love some help. I'll send you a DM.

[–] Cr4yfish 4 points 2 years ago (2 children)

Thanks a Lot :)

Yeah, switching instances is currently WIP. That'll get done together with the signups feature sometime this week.

[–] Cr4yfish 1 points 2 years ago

Ah, now I understand. That's really shitty.

[–] Cr4yfish 1 points 2 years ago (2 children)

Apple saves a copy of your encryption key so that you can access it on other devices

I wouldn't call that E2E then. Classic middle-man.

[–] Cr4yfish 2 points 2 years ago (1 children)

I just cross fingers that the next election won’t be a disaster for us

If the current trend continues I see bad things on the horizon. If the AfD ever becomes part of a coalition then I'll move to the Netherlands. They can't get their shit together as well but at least I don't care about their politics :(.

[–] Cr4yfish 2 points 2 years ago (4 children)

iMessage is end to end encrypted yet Apple still gives info to the FBI all the time

Which would "only" be the metadata then, which is a lot more difficult to work with. But I also don't want to understate how crucial metadata can be in the right/wrong hands.

I say blame the government that prosecutes women for what is considered healthcare in the rational world

Well.. I mean it's the US. There's a reason why I only half-jokingly call that a third world country.

view more: ‹ prev next ›