Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

NodeBB <> Lemmy federation issue (re: nullable image/icon)

Technical Discussion
26 4 20

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @julian that might be it, yeah. languages outside of javascript generally don't make a distinction between null and undefined, and even in javascript these are used inconsistently. for example localStorage.getItem will return null for a missing key. practically speaking, the "intentionally" distinction is a distinction without a difference in most processing contexts.

    read more

  • trwnh@mastodon.social undefined and perhaps that's why we're disagreeing on our interpretations of how these values should be handled.

    null in JavaScript is very explicitly a declaration that there is no value or "intentionally empty".

    null and undefined are two separate things here at least.

    read more

  • @julian what does js return instead? in most cases i'm familiar with, programming languages use null or nil or None for anything that doesn't have a value, or any reference which doesn't point anywhere. hence a null pointer exception when you try to dereference a null. if you try to get a value for a key that isn't in the dictionary, you get null by default because there is no value for a missing key. how would you consume a null value? if you have nothing to say, why say anything?

    read more

  • trwnh@mastodon.social I'm coding in js, which has all sorts of footguns, but even that won't return null when I attempt to access the non-existent property of an object... 😛

    read more

  • @julian this wouldn't be your AP lib, it would be your programming language itself

    read more

  • trwnh@mastodon.social as someone working on the consuming side, that is not correct.

    If my AP lib automatically assumed null when requesting an object property that didn't exist I'd consider that a bug.

    read more

  • @julian there's no difference on the consuming side (and in many programming languages you can check for truthiness with something like `if x.get("totalItems")` which defaults to returning null if missing anyway)

    functionally, you either have the information, or you don't

    read more

  • trwnh@mastodon.social not sent due to implementation differences, rather.

    read more
Post suggeriti
  • 0 Votes
    5 Posts
    0 Views
    Not particularly, but I am worried about adding additional complexity since it affects developer buy-in. I'll bring it up at the next ForumWG for debate.
  • 0 Votes
    3 Posts
    7 Views
    @thomasjwebb Yes, that would be Lockdown mode, where you only allow activities/access to servers you define, it requires they sign fetches, but most software does by now!
  • 0 Votes
    5 Posts
    8 Views
    @wjmaggos Yeah, but feel bad for the guy. What's happening is that there is an adversarial relationship developing and Bluesky holds all the cards. This is not going to end well for Blacksky.This has always been the problem with corporate sponsored standards. If the technology host company is not fully and completely committed to open competition with their standard clients it can never work.
  • 0 Votes
    1 Posts
    12 Views
    Running a community in the Fediverse means balancing openness with safety. Every year, @iftas takes the pulse of administrators, moderators, and community managers with their Annual Needs Assessment. This survey helps identify what’s working, where support is needed, and which tools can make a difference for those keeping decentralized spaces safe.The 2025 survey is now openTake part in the IFTAS Needs Assessment (5–10 minutes).Take the survey now(If you haven’t seen them before, you can also take a look at last year’s report)Last year’s responses represented moderators of over 4.3 million accounts across ActivityPub platforms. With WordPress now the largest group of federating instances, it’s especially important for our community of hosts, site admins, and moderators to be heard.Moderation in WordPress: From Site-Wide to Personal ControlsWe recently introduced a major update to the ActivityPub plugin for WordPress: personalized and site-wide moderation tools.Site administrators can now set domain, keyword, and actor-level blocks that protect the entire site.Individual users can fine-tune their own experience with personal blocks, managed directly from their profiles.Content is checked against both global and personal rules—so moderation works at every level.These improvements directly address needs raised in previous IFTAS surveys, making moderation more discoverable, flexible, and effective for WordPress communities in the Fediverse.Your Input MattersIFTAS uses the Needs Assessment to guide tools, policies, and advocacy that reflect the real-world challenges of moderators—especially those in under-resourced communities. The more representative the responses, the stronger the outcomes for everyone.If you’re running a federating WordPress site, please consider:Filling out the survey yourself.Sharing it with other admins, moderators, and community organizers.Reminding folks that it’s anonymous, quick, and impactful.Take the 2025 Fediverse Needs AssessmentTogether, we can keep building a safer, healthier Fediverse—one that reflects the needs of its communities.