Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Fediverse
  3. Need help implementing ActivityPub - getting inconsistent results across platforms

Need help implementing ActivityPub - getting inconsistent results across platforms

Planlagt Fastgjort Låst Flyttet Fediverse
fediverse
16 Indlæg 6 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • irelephant@lemmy.dbzer0.comI irelephant@lemmy.dbzer0.com

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

    ? Offline
    ? Offline
    Gæst
    wrote sidst redigeret af
    #7

    Disabled bunker for now.

    irelephant@lemmy.dbzer0.comI 1 Reply Last reply
    0
    • ? Gæst

      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.

      rglullis@communick.newsR This user is from outside of this forum
      rglullis@communick.newsR This user is from outside of this forum
      rglullis@communick.news
      wrote sidst redigeret af
      #8

      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.

      ? 1 Reply Last reply
      0
      • ? Gæst

        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.

        https://matrix.to/#/#bdserver:tchncs.de

        Source code: ActivityPub.py

        rglullis@communick.newsR This user is from outside of this forum
        rglullis@communick.newsR This user is from outside of this forum
        rglullis@communick.news
        wrote sidst redigeret af
        #9

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

        1 Reply Last reply
        0
        • ? Gæst

          Disabled bunker for now.

          irelephant@lemmy.dbzer0.comI This user is from outside of this forum
          irelephant@lemmy.dbzer0.comI This user is from outside of this forum
          irelephant@lemmy.dbzer0.com
          wrote sidst redigeret af
          #10

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

          ? 1 Reply Last reply
          0
          • irelephant@lemmy.dbzer0.comI irelephant@lemmy.dbzer0.com

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

            ? Offline
            ? Offline
            Gæst
            wrote sidst redigeret af
            #11

            Should not too I removed all blocks.

            1 Reply Last reply
            0
            • rglullis@communick.newsR rglullis@communick.news

              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.

              ? Offline
              ? Offline
              Gæst
              wrote sidst redigeret af
              #12

              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 Reply Last reply
              0
              • irelephant@lemmy.dbzer0.comI irelephant@lemmy.dbzer0.com

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

                ? Offline
                ? Offline
                Gæst
                wrote sidst redigeret af
                #13

                try spoofing a user-agent or torifying it maybe

                irelephant@lemmy.dbzer0.comI 1 Reply Last reply
                0
                • ? Gæst

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

                  rglullis@communick.newsR This user is from outside of this forum
                  rglullis@communick.newsR This user is from outside of this forum
                  rglullis@communick.news
                  wrote sidst redigeret af
                  #14

                  The menu has a link to the repository.

                  1 Reply Last reply
                  0
                  • ? Gæst

                    try spoofing a user-agent or torifying it maybe

                    irelephant@lemmy.dbzer0.comI This user is from outside of this forum
                    irelephant@lemmy.dbzer0.comI This user is from outside of this forum
                    irelephant@lemmy.dbzer0.com
                    wrote sidst redigeret af
                    #15

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

                    1 Reply Last reply
                    0
                    • ? Gæst

                      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.

                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.org
                      wrote sidst redigeret af
                      #16

                      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 Reply Last reply
                      0
                      Svar
                      • Svar som emne
                      Login for at svare
                      • Ældste til nyeste
                      • Nyeste til ældste
                      • Most Votes


                      • Log ind

                      • Har du ikke en konto? Tilmeld

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      Graciously hosted by data.coop
                      • First post
                        Last post
                      0
                      • Hjem
                      • Seneste
                      • Etiketter
                      • Populære
                      • Verden
                      • Bruger
                      • Grupper