Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)FR
FrostySpectacles @lemmy.ml
Posts 4
Comments 20

Lemminator is about to hit Netlify's monthly usage limit - what can I do?

I host a Lemmy.world web UI at https://lemminator.netlify.app/ on Netlify's free tier. Due to intense usage, I got an e-mail warning me that 75% of my functions allowance has been depleted:

!

I assume that when this counter hits 100%, people who use it will be locked out until the bill cycle resets. Although instance admins can self-host Lemminator, it's still missing a few features like post creation and registration that admins might consider essential.

What do I do? Are there any other free Netlify-like services where I wouldn't run into this usage limit?

6
Open source devs: please, please add screenshots...
  • As a user, I completely agree. People often make decisions in a few seconds, and you've done all this work developing an app. That little extra step will allow you to make a difference to more people!

    As a developer of a Lemmy web UI, I've been thinking about adding screenshots to my README for weeks but still haven't done so 🙈

  • It's time to take advantage of Reddit's decline
  • Heck yeah, share your work with the world.

    We should probably compile a regularly updated list somewhere. It's great that people have so many options. Now we just need to make it easier for them to find a web UI that suits their needs.

  • Comment tree not loading on Lemmy web UI

    I may have bumped into a bug while testing comment functionality.

    • Go to https://lemmy.ml/comment/2566997
    • Click '2 more replies'

    I think those two other replies were comments that I deleted. I assume the cause of the bug is comment 2566997 having a child_count value of 2.

    2

    Understanding the semantics of child_count in the comments API

    I have a question about the semantics of child_count in the comment list API endpoint. Sorry for being related to an earlier question but I haven't quite figured it out yet.

    My assumption was that child_count would indicate the amount of total descendants of a comment, regardless of depth. But take this case for example:

    $ curl 'https://lemmy.ml/api/v3/comment/list?parent_id=2157873&max_depth=999&limit=999' | jq '.comments[] | { path: .comment.path, id: .comment.id, content: .comment.content, child_count: .counts.child_count }'

    json { "path": "0.2157873", "id": 2157873, "content": "Really cool! I'm excited to learn more about you and the project!\n\nWhat's the format? Should we submit questions beforehand, or will you process questions that arrive at the start time? I've never participated in an AMA 😅 ", "child_count": 9 } { "path": "0.2157873.2158260", "id": 2158260, "content": "You just post questions as top-level replies to the stickied thread that day, and we'll be online to answer them.", "child_count": 6 } { "path": "0.2157873.2158260.2158286", "id": 2158286, "content": "Cool. Thank you for doing this!", "child_count": 1 } { "path": "0.2157873.2158260.2229041", "id": 2229041, "content": "Post doesn’t mention, where is the AMA? Here or in a different community?", "child_count": 3 } { "path": "0.2157873.2158260.2158286.2158743", "id": 2158743, "content": "No probs!", "child_count": 0 } { "path": "0.2157873.2158260.2229041.2231423", "id": 2231423, "content": "As the post mentions, it will be stickied to the top of lemmy.ml ", "child_count": 2 } { "path": "0.2157873.2158260.2229041.2231423.2231737", "id": 2231737, "content": "Thanks for the details. May be I’m missing something, but I don’t see that detail in the post. ![](https://programming.dev/pictrs/image/82c90859-9cfb-4c00-80d8-7e96bfd96c1c.jpeg)", "child_count": 1 } { "path": "0.2157873.2158260.2229041.2231423.2231737.2238347", "id": 2238347, "content": "Oops my bad, that was something I responded to in a comment.", "child_count": 0 }

    I see that comment 2157873 has a child count of 9, with one direct descendant (2158260). The descendant has a child count of 6. I'd reason that comment 2157873 has 2 direct descendants that aren't visible in the API response yet, because it has one visible descendant having a child count of 6 (i.e. 9 - 1 - 6 = 2). My calculation seems incorrect because (a) I don't see a 'Load more' indicator for this part of the comment thread on https://lemmy.ml/post/2671212, and (b) every comment shown there also seems present in the API response.

    Am I understanding the meaning of child_count correctly?

    6

    Where can I get the amount of direct descendants of a comment?

    I'm creating an AGPL-licensed Lemmy web UI.

    While working on the comment section I wondered: what's the best way to retrieve the total amount of direct descendants of a comment? I'm not talking about child_count as this appears to count descendants at any depth.

    My use case is displaying a 'Load X more' button that for a given comment loads any direct descendants that are not yet being displayed.

    3