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
    4 Posts
    0 Views
    @fediversereport @mackuba this is not a problem of the plugin itself. you seem to use a caching plugin that does not support Accept header variations. you can disable content negotiation in the advanced settings.if you tell me what caching plugin you use, I can also check if there might be an alternate workaround.
  • 0 Votes
    1 Posts
    3 Views
    Moin Leute ich brauche mal ein bisschen #fedipower zum Thema Mastodon / Activitypub Bots.Gibt es eine einheitliche API mit der ich zum Beispiel bei Mastodon, GoToSocial, Misskey etc. Nachrichten / Bilder für einen Bot Account abliefern kann oder kocht da jedes Projekt sein eigenes Süppchen?Ich habe für Emby ja schon Plugins für Telegram und Matrix geschrieben und würde nun gerne eines für das Fediverse bauen. Aber nur um ein paar Statusmeldungen abzuliefern wäre ein kompletter ActivityPub Client in CSharp wohl overkill (und auch ausserhalb meines Horizonts).#activitypub #fediverse #bots #softwaredevelopment #emby #boostok #pleaseboost
  • 0 Votes
    4 Posts
    10 Views
    @julian @box464 There's actually already an Android app that allows all this: Raccoon for Friendica (which actually also works for Mastodon).Raccoon for Friendica is a rather unique app, one I'm very fond of, because it perfectly illustrates how the best ideas come from the "contamination" of different environments. Here's an article about Raccoon that should be updated, which I wrote a few weeks after the app's beta release (launched in late August 2024)Raccoon for Friendica was developed by @akesiseli after he had already developed an Android client for Lemmy (Raccoon for Lemmy).When he focused on Friendica, he faced the problem of how to translate Friendica's ability to display group conversations into an app (they're quite visible on Friendica's web interface, though they don't have the clearest interface possible like Lemmy's or forum platforms like NodeBB and Discourse). He ported the "topic view" feature already present in Lemmy's apps to Friendica!Since Raccoon is an app that also works with Mastodon, @akesiseli attempted to "force" Mastodon to have the same interface, and after a few attempts, he succeeded perfectly.Raccoon for Friendica still has a few imperfections (search isn't 100% functional, it still doesn't handle resharing with quoting, and other minor glitches, and feed capture is still a bit slow compared to Tusky and Fedilab), but despite being just over a year old, it's a decidedly mature app. Most importantly, it offers group viewing features that no other app offers. And—trust me!—group viewing isn't the only new feature Raccoon has brought to a social media client!I hope the app's development continues well, although I'm a little concerned: the developer is a bit disappointed that almost no one uses his app... But this is mostly due to the fact that the app has a name that appeals to Friendica users (who are very few) and that even the most established apps for Mastodon suffer from competition from an "official" app!
  • 0 Votes
    47 Posts
    44 Views
    @wjmaggos @evan @chris @blaine @anewsocial Huge difference between screenshotting vs always being a part of another network and another organization's infrastructure by default.To be clear, I don't agree with Fediverse platforms depending on a blocklists, I much prefer approve-lists, but I don't think that's a popular opinion either.