Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    Need help implementing ActivityPub - getting inconsistent results across platforms

    Pianificato Fissato Bloccato Spostato Uncategorized
    fediverse
    16 Post 6 Autori 14 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • madiator2011@lm.madiator.cloudM Questo utente è esterno a questo forum
      madiator2011@lm.madiator.cloud
      ultima modifica di

      My friend is working on adding ActivityPub support to his blog platform (BDServer) so people can follow/comment from Mastodon, Lemmy, etc.

      Current status: Lemmy and Misskey can find and follow his account (@blenderdumbass@blenderdumbass.org), but Mastodon can't find it at all, even though he sees proper ActivityPub requests hitting his server.

      The technical details are pretty gnarly - RSA signature verification, HTTP header recreation, multi-threading issues. He wrote up the full journey here: Please Help Me With Activity Pub

      If anyone has ActivityPub experience or wants to take a look at the code (Python), we have a Matrix room for BDServer development. Any insights on why different platforms behave differently would be super helpful.

      You're invited to talk on Matrix

      You're invited to talk on Matrix

      favicon

      (matrix.to)

      Source code: ActivityPub.py

      irelephant@lemmy.dbzer0.comI flamingos@feddit.ukF rglullis@communick.newsR 3 Risposte Ultima Risposta Rispondi Cita 0
      • irelephant@lemmy.dbzer0.comI Questo utente è esterno a questo forum
        irelephant@lemmy.dbzer0.com @madiator2011@lm.madiator.cloud
        ultima modifica di

        Did something change since this was posted?
        I can look it up properly on mastodon.
        You have to be signed in to fetch accounts on mastodon, is that the problem?

        Are you using any framework to build the site? There's a few libraries for activitypub.
        These links could be helpful: https://codeberg.org/fediverse/delightful-activitypub-development/

        blenderdumbass@lm.madiator.cloudB madiator2011@lm.madiator.cloudM 2 Risposte Ultima Risposta Rispondi Cita 0
        • flamingos@feddit.ukF Questo utente è esterno a questo forum
          flamingos@feddit.uk @madiator2011@lm.madiator.cloud
          ultima modifica di

          I'm not the most knowledgeable about Mastodon's APub implementation, but having a look at the Actor of that profile, it might be because it's invalid JSON-LD. Now, Mastodon doesn't actually do proper JSON-LD checks, you can follow PieFed profiles from Mastodon and they don't produce proper JSON-LD, but they do include "https://w3id.org/security/v1" in their @context, and doing a code search of Mastodon's source code does show some checks for if that's included.

          Lemmy's I am familiar with and irrc it doesn't even check if @context is present.

          1 Risposta Ultima Risposta Rispondi Cita 0
          • blenderdumbass@lm.madiator.cloudB Questo utente è esterno a questo forum
            blenderdumbass@lm.madiator.cloud @irelephant@lemmy.dbzer0.com
            ultima modifica di

            Seems like somebody mentioned the account on the fediverse that started a chain reaction of various instances requesting a bunch of stuff. Which made it to Mastodon.social too. It still doesn't work though.

            The server is written in python and the idea is to make it deploy-able without needing to install anything extra. So I'm trying to implement my own activity pub.

            irelephant@lemmy.dbzer0.comI rglullis@communick.newsR julian@community.nodebb.orgJ 3 Risposte Ultima Risposta Rispondi Cita 0
            • madiator2011@lm.madiator.cloudM Questo utente è esterno a questo forum
              madiator2011@lm.madiator.cloud @irelephant@lemmy.dbzer0.com
              ultima modifica di

              I would say for now the most issue is about acually pulling posts.

              1 Risposta Ultima Risposta Rispondi Cita 0
              • irelephant@lemmy.dbzer0.comI Questo utente è esterno a questo forum
                irelephant@lemmy.dbzer0.com @blenderdumbass@lm.madiator.cloud
                ultima modifica di

                Running curl https://blenderdumbass.org/activitypub/account/blenderdumbass -H "Accept: application/activity+json" twice in a row outputs some bunkerweb anti-spam stuff.

                madiator2011@lm.madiator.cloudM blenderdumbass@lm.madiator.cloudB 2 Risposte Ultima Risposta Rispondi Cita 0
                • madiator2011@lm.madiator.cloudM Questo utente è esterno a questo forum
                  madiator2011@lm.madiator.cloud @irelephant@lemmy.dbzer0.com
                  ultima modifica di

                  Disabled bunker for now.

                  irelephant@lemmy.dbzer0.comI 1 Risposta Ultima Risposta Rispondi Cita 0
                  • rglullis@communick.newsR Questo utente è esterno a questo forum
                    rglullis@communick.news @blenderdumbass@lm.madiator.cloud
                    ultima modifica di

                    It's for django, but take a look into my ActivityPub Toolkit. It is designed to be compliant with ActivityPub and not with any particular implementation, so it should be easy for you to adapt to your own needs.

                    blenderdumbass@lm.madiator.cloudB 1 Risposta Ultima Risposta Rispondi Cita 0
                    • rglullis@communick.newsR Questo utente è esterno a questo forum
                      rglullis@communick.news @madiator2011@lm.madiator.cloud
                      ultima modifica di

                      Maybe this kind of discussion will get more interested people on !activitypub@programming.dev .

                      1 Risposta Ultima Risposta Rispondi Cita 0
                      • irelephant@lemmy.dbzer0.comI Questo utente è esterno a questo forum
                        irelephant@lemmy.dbzer0.com @madiator2011@lm.madiator.cloud
                        ultima modifica di

                        Also: bunker blocks me 100% of the time on individual articles.

                        madiator2011@lm.madiator.cloudM 1 Risposta Ultima Risposta Rispondi Cita 0
                        • madiator2011@lm.madiator.cloudM Questo utente è esterno a questo forum
                          madiator2011@lm.madiator.cloud @irelephant@lemmy.dbzer0.com
                          ultima modifica di

                          Should not too I removed all blocks.

                          1 Risposta Ultima Risposta Rispondi Cita 0
                          • blenderdumbass@lm.madiator.cloudB Questo utente è esterno a questo forum
                            blenderdumbass@lm.madiator.cloud @rglullis@communick.news
                            ultima modifica di

                            This doesn't have any link to code. And all the other buttons say that the docs are not implemented yet.

                            rglullis@communick.newsR 1 Risposta Ultima Risposta Rispondi Cita 0
                            • blenderdumbass@lm.madiator.cloudB Questo utente è esterno a questo forum
                              blenderdumbass@lm.madiator.cloud @irelephant@lemmy.dbzer0.com
                              ultima modifica di

                              try spoofing a user-agent or torifying it maybe

                              irelephant@lemmy.dbzer0.comI 1 Risposta Ultima Risposta Rispondi Cita 0
                              • rglullis@communick.newsR Questo utente è esterno a questo forum
                                rglullis@communick.news @blenderdumbass@lm.madiator.cloud
                                ultima modifica di

                                The menu has a link to the repository.

                                1 Risposta Ultima Risposta Rispondi Cita 0
                                • irelephant@lemmy.dbzer0.comI Questo utente è esterno a questo forum
                                  irelephant@lemmy.dbzer0.com @blenderdumbass@lm.madiator.cloud
                                  ultima modifica di

                                  While I'm sure that would let me see the article, mastodon probably wouldn't handle it well.

                                  1 Risposta Ultima Risposta Rispondi Cita 0
                                  • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                                    julian@community.nodebb.org @blenderdumbass@lm.madiator.cloud
                                    ultima modifica di

                                    For what it's worth your blog does show up fine in NodeBB as well. Perhaps you are missing the @context property and so Mastodon is refusing to parse it?

                                    1 Risposta Ultima Risposta Rispondi Cita 0
                                    • Primo post
                                      Ultimo post