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 250 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.
  • 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 Community Network

            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
                            • 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
                              #31

                              It's happening!

                              Almost everything here in the attached image is coming from comicstrips@lemmy.world, a Lemmy community (Christine Lemmer-Webber excepted). So, that's exciting! There's some inconsistencies with regards to whether the attached images are coming through, and whether community is being tagged or not, but that's just rough edges. Image-based communities aren't as much of a forum thing anyway.

                              Link Preview Image
                              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
                                #32

                                @Kichae hmm they ought to work the same though, so inconsistencies should be addressed. Thanks for letting me know. I'll take a look today, time permitting.

                                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
                                  #33

                                  The difference appears to be whether the OP is on lemmy.world (LW; the site that hosts the community) or not. Posts made by LW users do not include the tag or media, while posts made by off-site users do contain the tag and media.

                                  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
                                    #34

                                    @Kichae With regard to some responses showing up and others not, it seems Lemmy does not process activities for communities if it has no followers.

                                    So let's say you search for a remote community on Lemmy and make a post to it, and it crosses over to NodeBB. If that community has no local followers then even though you posted to it, any replies will not be accepted by Lemmy.

                                    Seems like a bug or restriction on their part.

                                    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
                                      #35

                                      @Kichae said in Lemmy and NodeBB:

                                      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.

                                      At least in my limited (and definitely not exhaustive) testing, bi-directional posting does seem to work.

                                      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
                                        #36

                                        @julian said in Lemmy and NodeBB:

                                        Seems like a bug or restriction on their part.

                                        Yeah, at the very least it's not how people seem to expect it to work, but a lot about ActivityPub doesn't work the way people have been accustomed to. So I can understand that.

                                        Personally, I have complicated feelings about whether a site even should be hosting groups for non-local users. I guess I can see a use-case for such a thing, but this whole endeavour feels like it needs to be local-first to me, rather than LARPing as homogeneous centralized social media.

                                        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
                                          #37

                                          @kichae@lemmy.ca image attachments should be better handled by NodeBB now

                                          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