Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. Edge case when backfilling topics

Edge case when backfilling topics

Pianificato Fissato Bloccato Spostato Technical Discussion
2 Post 2 Autori 15 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • julian@activitypub.space
    julian@activitypub.space
    julian@activitypub.space
    scritto su ultima modifica di
    #1

    When it comes to backfilling topics, NodeBB utilises what is called "context collection backfill" instead of reply-chain traversal. In a nutshell, instead of crawling up and down the reply tree one-by-one — kind of like what Mastodon does currently — it checks for a canonical source-of-truth in the context property.

    NodeBB supports both strategies, since not all objects contain context.

    I found a fun little edge case where if I start a topic, a reply is received, and that reply points to my instance, it won't catch any replies made in between.

    In other words:

    localA starts topic → remoteB replies → remoteC replies to B only → remoteB replies to C and A
    

    In this scenario, because my instance A is left out of the third activity, I don't know about it. When the fourth activity appears, the context is checked, C's reply isn't in it, and I proceed without knowing about it. Oops!

    In this case, when incoming replies reference a context that is same-origin to your own instance, you should not use context collection backfill, because:

    1. You already have the entire context, so it's unnecessarily duplication of work
    2. You won't catch any replies made out-of-band unless you do reply-tree traversal

    Tagging @silverpill@mitra.social because this is related to FEP f228.

    evan@activitypub.space 1 Risposta Ultima Risposta
    2
    • julian@activitypub.space julian@activitypub.space

      When it comes to backfilling topics, NodeBB utilises what is called "context collection backfill" instead of reply-chain traversal. In a nutshell, instead of crawling up and down the reply tree one-by-one — kind of like what Mastodon does currently — it checks for a canonical source-of-truth in the context property.

      NodeBB supports both strategies, since not all objects contain context.

      I found a fun little edge case where if I start a topic, a reply is received, and that reply points to my instance, it won't catch any replies made in between.

      In other words:

      localA starts topic → remoteB replies → remoteC replies to B only → remoteB replies to C and A
      

      In this scenario, because my instance A is left out of the third activity, I don't know about it. When the fourth activity appears, the context is checked, C's reply isn't in it, and I proceed without knowing about it. Oops!

      In this case, when incoming replies reference a context that is same-origin to your own instance, you should not use context collection backfill, because:

      1. You already have the entire context, so it's unnecessarily duplication of work
      2. You won't catch any replies made out-of-band unless you do reply-tree traversal

      Tagging @silverpill@mitra.social because this is related to FEP f228.

      evan@activitypub.space
      evan@activitypub.space
      evan@activitypub.space
      scritto su ultima modifica di
      #2

      I see two reasons this could happen:

      1. C's server or client software doesn't know how to include the context
      2. C intentionally wanted to remove their reply to B from the context. It's a semi-private aside.

      I think you'd want to backfill in case 1 but not in case 2. But I don't think there's an easy way to tell which is which.

      1 Risposta Ultima Risposta
      0

      Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

      Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

      Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

      Registrati Accedi
      Rispondi
      • Risposta alla discussione
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti


      Feed RSS
      Edge case when backfilling topics
      @pierobosio@soc.bosio.info
      NodeBB Contributors
      • Accedi

      • Accedi o registrati per effettuare la ricerca.
      • Primo post
        Ultimo post