Skip to content
  • Categories
  • Recent
  • Popular
Skins
  • 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
Collapse

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. General Discussion
  4. AP Test (community.nodebb.org)
  5. NodeBB v4.0.0 Beta

NodeBB v4.0.0 Beta

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
nodebbactivitypubnodebbactivityp
37 Posts 9 Posters 256 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • trwnh@socialhub.activitypub.rocksT This user is from outside of this forum
    trwnh@socialhub.activitypub.rocksT This user is from outside of this forum
    trwnh@socialhub.activitypub.rocks
    wrote on last edited by
    #11

    depends what you're trying to assert or prove. signing http messages in general is something that could still be done, if your goal is to assert who made the http request. embedding a signature on a document is fine, if your goal is to assert who authored the document and that the document has not been modified. (or you could limit it to just the content, or some arbitrary metadata, or whatever.)

    for any key-based verification methods, you need to be wary of key reuse. it's possible for the keyId to be different, but for the key material to be the same as some other key. you can generally tell that an actor is represented by a key, and then the key can claim to be controlled by that actor, but you don't know if the associated private key is in fact being controlled by other actors unknown to you, or if other actors are represented by the same public key material. so some level of deduplication of public keys may be needed before you can authenticate an identity. of course the "real" problem is that the keys are most likely custodial, and rather than try to discover and enumerate every single actor from a given domain, most implementers just assume that any keyId on a given domain is in reality controlled by the software running on that domain. (the same-origin policy, basically.)

    so in conclusion, if you're trying to know that a given identity is behind the request, then the best you can tell right now is that their server is making the request. whereas with stuff like fedcm oidc or fedcm indieauth, the request is happening in the browser.

    1 Reply Last reply
    0
    • S This user is from outside of this forum
      S This user is from outside of this forum
      sweetp@community.nodebb.org
      wrote on last edited by
      #12

      I get the following error trying to upgrade from v3.9.10 on my dev install:

      4. Updating NodeBB data store schema...
      Parsing upgrade scripts...
      OK | 8 script(s) found, 145 skipped
        → [2024/2/22] Setting up default configs/privileges re: ActivityPub...Error occurred
      Error occurred during upgrade: Error: [[error:invalid-data]]
          at Meta.slugTaken (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/meta/index.js:34:9)
          at Object.wrapperCallback [as slugTaken] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)
          at generateHandle (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/categories/create.js:153:26)
          at Object.wrapperCallback [as generateHandle] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)
          at /var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:25:36
          at Array.map (<anonymous>)
          at Object.method (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:23:42)
          at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
          at async Upgrade.process (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:161:4)
          at async Upgrade.run (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:110:2)
      
      1 Reply Last reply
      0
      • 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 on last edited by
        #13

        @sweetp can you please add console.log(names); to line 22 (the blank line) in src/upgrade/4.0.0/activitypub_setup.js, and run ./nodebb upgrade activitypub_setup again?

        1 Reply Last reply
        0
        • S This user is from outside of this forum
          S This user is from outside of this forum
          sweetp@community.nodebb.org
          wrote on last edited by
          #14

          @Julian here you go:

          Parsing upgrade scripts...
          OK | 1 script(s) found
            → [2024/2/22] Setting up default configs/privileges re: ActivityPub...[
            { name: 'Cookie 7' },
            { name: 'TuneTag' },
            { name: 'Cookie 5' },
            { name: 'News' },
            { name: 'Minim' },
            { name: 'Cookie 4' },
            { name: 'ColorWell' },
            { name: 'Cookie 6' },
            { name: 'WiFiSpoof' },
            { name: 'SessionRestore JS' },
            { name: 'Privatus' },
            { name: 'USBclean' },
            { name: 'SessionRestore' },
            { name: 'Hides' },
            { name: 'Xliff Editor' },
            { name: 'Other apps' },
            { name: 'Invisible' },
            { name: 'Archived' },
            { name: 'Misc' },
            { name: null }
          ]
          Error occurred
          2024-10-03T18:18:47.515Z [4568/1713751] - error: uncaughtException: [[error:invalid-data]]
          Error: [[error:invalid-data]]
              at Meta.slugTaken (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/meta/index.js:34:9)
              at Object.wrapperCallback [as slugTaken] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)
              at generateHandle (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/categories/create.js:153:26)
              at Object.wrapperCallback [as generateHandle] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)
              at /var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:25:36
              at Array.map (<anonymous>)
              at Object.method (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:23:42)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              at async Upgrade.process (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:161:4)
              at async Upgrade.runParticular (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:118:2) {"date":"Thu Oct 03 2024 20:18:47 GMT+0200 (Central European Summer Time)","error":{},"exception":true,"os":{"loadavg":[0.21,0.17,0.06],"uptime":2804105.47},"process":{"argv":["/opt/plesk/node/22/bin/node","/var/www/vhosts/domain.com/test.domain.com/NodeBB/nodebb","upgrade","activitypub_setup"],"cwd":"/var/www/vhosts/domain.com/test.domain.com/NodeBB","execPath":"/opt/plesk/node/22/bin/node","gid":1003,"memoryUsage":{"arrayBuffers":869789,"external":4802391,"heapTotal":92000256,"heapUsed":63868520,"rss":177631232},"pid":1713751,"uid":10011,"version":"v22.9.0"},"stack":"Error: [[error:invalid-data]]\n    at Meta.slugTaken (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/meta/index.js:34:9)\n    at Object.wrapperCallback [as slugTaken] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)\n    at generateHandle (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/categories/create.js:153:26)\n    at Object.wrapperCallback [as generateHandle] (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js:46:11)\n    at /var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:25:36\n    at Array.map (<anonymous>)\n    at Object.method (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js:23:42)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Upgrade.process (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:161:4)\n    at async Upgrade.runParticular (/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js:118:2)","trace":[{"column":9,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/meta/index.js","function":"Meta.slugTaken","line":34,"method":"slugTaken","native":false},{"column":11,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js","function":"Object.wrapperCallback [as slugTaken]","line":46,"method":"wrapperCallback [as slugTaken]","native":false},{"column":26,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/categories/create.js","function":"generateHandle","line":153,"method":null,"native":false},{"column":11,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/promisify.js","function":"Object.wrapperCallback [as generateHandle]","line":46,"method":"wrapperCallback [as generateHandle]","native":false},{"column":36,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js","function":null,"line":25,"method":null,"native":false},{"column":null,"file":null,"function":"Array.map","line":null,"method":"map","native":false},{"column":42,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrades/4.0.0/activitypub_setup.js","function":"Object.method","line":23,"method":"method","native":false},{"column":5,"file":"node:internal/process/task_queues","function":"process.processTicksAndRejections","line":105,"method":"processTicksAndRejections","native":false},{"column":4,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js","function":"async Upgrade.process","line":161,"method":"process","native":false},{"column":2,"file":"/var/www/vhosts/domain.com/test.domain.com/NodeBB/src/upgrade.js","function":"async Upgrade.runParticular","line":118,"method":"runParticular","native":false}]}
          $
          
          1 Reply Last reply
          0
          • 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 on last edited by
            #15

            @sweetp what is the last category, and how come it has no name?

            1 Reply Last reply
            0
            • S This user is from outside of this forum
              S This user is from outside of this forum
              sweetp@community.nodebb.org
              wrote on last edited by
              #16

              @Julian Im not sure, is there any way to purge it?

              1 Reply Last reply
              0
              • 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 on last edited by
                #17

                @sweetp does it correspond to an existing category? Or are all of your categories represented in the output above?

                1 Reply Last reply
                0
                • S This user is from outside of this forum
                  S This user is from outside of this forum
                  sweetp@community.nodebb.org
                  wrote on last edited by
                  #18

                  @Julian all my categories are repesented by the log output

                  1 Reply Last reply
                  0
                  • S This user is from outside of this forum
                    S This user is from outside of this forum
                    sweetp@community.nodebb.org
                    wrote on last edited by
                    #19

                    @Julian I filtered out the null names and the upgrade went through:

                    "use strict";
                    
                    const db = require("../../database");
                    const meta = require("../../meta");
                    const categories = require("../../categories");
                    const slugify = require("../../slugify");
                    
                    module.exports = {
                      name: "Setting up default configs/privileges re: ActivityPub",
                      timestamp: Date.UTC(2024, 1, 22),
                      method: async () => {
                        // Disable ActivityPub (upgraded installs have to opt-in to AP)
                        meta.configs.set("activitypubEnabled", 0);
                    
                        // Set default privileges for world category
                        const install = require("../../install");
                        await install.giveWorldPrivileges();
                    
                        // Run through all categories and ensure their slugs are unique (incl. users/groups too)
                        const cids = await db.getSortedSetMembers("categories:cid");
                        const names = await db.getObjectsFields(
                          cids.map((cid) => `category:${cid}`),
                          cids.map(() => "name"),
                        );
                    
                        const nullIndexes = names
                          .map((element, index) => (element["name"] === null ? index : -1)) // mark null elements
                          .filter((index) => index !== -1);
                    
                        let filteredNames = names.filter(element => element["name"] !== null);
                        let filteredCids = cids.filter((_, index) => !nullIndexes.includes(index));
                    
                        const handles = await Promise.all(
                          filteredCids.map(async (cid, idx) => {
                            const { name } = filteredNames[idx];
                            const handle = await categories.generateHandle(slugify(name));
                            return handle;
                          }),
                        );
                    
                        await Promise.all([
                          db.setObjectBulk(
                            filteredCids.map((cid, idx) => [`category:${cid}`, { handle: handles[idx] }]),
                          ),
                          db.sortedSetAdd("categoryhandle:cid", filteredCids, handles),
                        ]);
                      },
                    };
                    
                    
                    1 Reply Last reply
                    0
                    • K This user is from outside of this forum
                      K This user is from outside of this forum
                      kichae@lemmy.ca
                      wrote on last edited by
                      #20

                      I’ve been playing around with community.nodebb.org, in anticipation of 4.0’s launch, and I’ve noticed that the Lemmy groups I’ve followed don’t appear to be showing up. I can see posts from Mastodon (and whatever else) users that I’ve followed in World, but not Lemmy groups.

                      Is this expected or intended? Following nodeBB topics from Lemmy has worked OK, so I thought it would be bidirectional.

                      Though, now that I’m comparing this post on lemmy.ca to that on the mothership, I see that replies from nodebb.org users aren’t showing up on the remote instance, either. Just those from off-site users. I’m caught somewhat off guard by that, too. Is that behaviour expected?

                      julian@community.nodebb.orgJ K 6 Replies Last reply
                      0
                      • K kichae@lemmy.ca

                        I’ve been playing around with community.nodebb.org, in anticipation of 4.0’s launch, and I’ve noticed that the Lemmy groups I’ve followed don’t appear to be showing up. I can see posts from Mastodon (and whatever else) users that I’ve followed in World, but not Lemmy groups.

                        Is this expected or intended? Following nodeBB topics from Lemmy has worked OK, so I thought it would be bidirectional.

                        Though, now that I’m comparing this post on lemmy.ca to that on the mothership, I see that replies from nodebb.org users aren’t showing up on the remote instance, either. Just those from off-site users. I’m caught somewhat off guard by that, too. Is that behaviour expected?

                        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 on last edited by
                        #21

                        @kichae@lemmy.ca whether replies from here appear on lemmy.ca depends on whether a user from lemmy.ca follows a user here. Perhaps that isn't the case? (Hopefully you see this reply now 😅)

                        Still need to debug Lemmy federation. Might be a regression.

                        1 Reply Last reply
                        0
                        • kainos@community.nodebb.orgK This user is from outside of this forum
                          kainos@community.nodebb.orgK This user is from outside of this forum
                          kainos@community.nodebb.org
                          wrote on last edited by
                          #22

                          What about Design v4, is the same like 3.11.0? Is there Grid categories Options with images?
                          Invision Community tests v5 Beta 6. Here some Forums

                          Link Preview Image
                          Fan Clubs

                          Fan Clubs is a social community network where club creators are provided the tools to build and grow their online community.

                          favicon

                          Fan Clubs (www.fanclubs.org)

                          Link Preview Image
                          Jimi Wikman - Atlassian Expert - JimiWikman.se

                          On this site you can find all kind of things related to IT development and topics such as Atlassian, Security and E-Commerce.

                          favicon

                          JimiWikman.se (jimiwikman.se)

                          Link Preview Image
                          Inter Milan : Communauté Francophone des Nerazzurri

                          La référence francophone sur l'Inter Milan et la plus grande source d'informations en français sur le club de football F.C. Internazionale Milano

                          favicon

                          Inter Milan : Communauté Francophone des Nerazzurri (www.internazionale.fr)

                          1 Reply Last reply
                          0
                          • K This user is from outside of this forum
                            K This user is from outside of this forum
                            kichae@community.nodebb.org
                            wrote on last edited by
                            #23

                            @julian said in NodeBB v4.0.0 Beta:

                            whether a user from lemmy.ca follows a user here

                            Hmm. That's going to be a big issue for Lemmy federation, then, because Lemmy doesn't even allow you to follow users, only groups. If that's the case, this seems like a deeper compatibility issue, and probably is probably more of a feature update than a bug fix.

                            1 Reply Last reply
                            0
                            • 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 on last edited by
                              #24

                              @Kichae @kichae@lemmy.ca That's an issue with all software federating via ActivityPub. If there isn't an existing follow relationship then the content isn't pushed to that user.

                              That's greatly simplifying it, of course. There's quite a bit more that actually goes into how it works.

                              In the case of the referenced topic, NodeBB automatically boosts replies that it receives from the category actor. When replies are made by NodeBB users, they are also addressed to everybody who has participated in the topic.

                              So given that, lemmy.ca should have received everything, at least since you started posting in it. In reality, there might be a connection issue between NodeBB and Lemmy, and that's what I'd want to verify first.

                              1 Reply Last reply
                              0
                              • K kichae@lemmy.ca

                                I’ve been playing around with community.nodebb.org, in anticipation of 4.0’s launch, and I’ve noticed that the Lemmy groups I’ve followed don’t appear to be showing up. I can see posts from Mastodon (and whatever else) users that I’ve followed in World, but not Lemmy groups.

                                Is this expected or intended? Following nodeBB topics from Lemmy has worked OK, so I thought it would be bidirectional.

                                Though, now that I’m comparing this post on lemmy.ca to that on the mothership, I see that replies from nodebb.org users aren’t showing up on the remote instance, either. Just those from off-site users. I’m caught somewhat off guard by that, too. Is that behaviour expected?

                                K This user is from outside of this forum
                                K This user is from outside of this forum
                                kichae@community.nodebb.org
                                wrote on last edited by
                                #25

                                No, I understand, it's just that I am following the group actors. I'm following the Lemmy communities from here, but new posts from them aren't arriving. I'm following the nodeBB topics from Lemmy, but nodeBB user comments aren't showing up there.

                                1 Reply Last reply
                                0
                                • 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 on last edited by
                                  #26

                                  @Kichae no the group actors are fine too. We implement the same sharing system that Lemmy implements.

                                  1 Reply Last reply
                                  0
                                  • K kichae@lemmy.ca

                                    I’ve been playing around with community.nodebb.org, in anticipation of 4.0’s launch, and I’ve noticed that the Lemmy groups I’ve followed don’t appear to be showing up. I can see posts from Mastodon (and whatever else) users that I’ve followed in World, but not Lemmy groups.

                                    Is this expected or intended? Following nodeBB topics from Lemmy has worked OK, so I thought it would be bidirectional.

                                    Though, now that I’m comparing this post on lemmy.ca to that on the mothership, I see that replies from nodebb.org users aren’t showing up on the remote instance, either. Just those from off-site users. I’m caught somewhat off guard by that, too. Is that behaviour expected?

                                    K This user is from outside of this forum
                                    K This user is from outside of this forum
                                    kichae@community.nodebb.org
                                    wrote on last edited by
                                    #27

                                    Hmm, ok. Unexpected and unintended interactions (or lack there of) it is, then. Fun!

                                    1 Reply Last reply
                                    0
                                    • 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 on last edited by
                                      #28

                                      @Kichae the forking is local only. There's no standard way to communicate a fork action across to other instances.

                                      We'll try to be pioneers and come up with a way though!

                                      1 Reply Last reply
                                      0
                                      • K kichae@lemmy.ca

                                        I’ve been playing around with community.nodebb.org, in anticipation of 4.0’s launch, and I’ve noticed that the Lemmy groups I’ve followed don’t appear to be showing up. I can see posts from Mastodon (and whatever else) users that I’ve followed in World, but not Lemmy groups.

                                        Is this expected or intended? Following nodeBB topics from Lemmy has worked OK, so I thought it would be bidirectional.

                                        Though, now that I’m comparing this post on lemmy.ca to that on the mothership, I see that replies from nodebb.org users aren’t showing up on the remote instance, either. Just those from off-site users. I’m caught somewhat off guard by that, too. Is that behaviour expected?

                                        K This user is from outside of this forum
                                        K This user is from outside of this forum
                                        kichae@community.nodebb.org
                                        wrote on last edited by
                                        #29

                                        I was worried that forking just wouldn't be supported on federated topics, or that if a posted was forked, it would break federation. So, this is incredible. This is what I've been waiting 2 and a half years for.

                                        1 Reply Last reply
                                        0
                                        • 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 on last edited by
                                          #30

                                          @Kichae yeah let's say a topic is forked in NodeBB. The baseline expectation is that federation doesn't break, but the ideal is that the fork is also federated so Lemmy (for example) would also fork the topic on their end, so it looks the same on either end.

                                          Something we'd want to work on with ForumWG (specifically @trwnh@mastodon.social)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Popular