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. Is ActivityPub too complicated?

Is ActivityPub too complicated?

Scheduled Pinned Locked Moved AP Test (community.nodebb.org)
activitypubnodebb 4.0
21 Posts 11 Posters 187 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.
  • frankm@community.nodebb.orgF This user is from outside of this forum
    frankm@community.nodebb.orgF This user is from outside of this forum
    frankm@community.nodebb.org
    wrote on last edited by
    #3

    Thank you @rimu@piefed.ngrok.app , now it's getting clearer in my head. I have added "https://lemmy.world/c/technology" , actual status is pending.

    How long does this take? Is it an automatic process, or is it manually approved by an admin? So many questions...

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

      It's automatic. But you might need to refresh the page before you see the result. Following an actor involves sending a follow activity and then waiting for an accept activity to be sent back. In Lemmy it should be sent almost immediately.

      Some personal Mastodon accounts have manual approval of followers but that doesn't apply here. Still, the same communication happens under the hood.

      1 Reply Last reply
      0
      • sabrew4k3@lazysoci.alS This user is from outside of this forum
        sabrew4k3@lazysoci.alS This user is from outside of this forum
        sabrew4k3@lazysoci.al
        wrote on last edited by
        #5

        status is pending.

        It gets stuck. Truth be told, it should be reworked as it's so buggy.

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

          I think some of the words, make ActivityPub more complicated to understand. Like what is an Actor ?
          This may be basic to some, but Im still not sure what an Actor is in this context, and why that word was used.
          Would be grateful if anyone can explain in one line ๐Ÿ™‚

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

            I did ask chatgpt, its new super familiar / friendly tone surprised me ๐Ÿ‘ป

            chatg1.png

            chatg2.png

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

              @FrankM Running into the same problem on my end (2 days and it seems my follow is stuck). Did you try to follow a non-group account when you got the 'null' actor on your list too? I get the feeling it's related to our endless pending on lemmy communities and such

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

                @arachnibot happy to take a closer look, since the category sync functionality should be working but might have broken in the interim during development.

                Can you let me know the Lemmy community you're trying to follow from your instance?

                Edit: same for you @FrankM

                1 Reply Last reply
                0
                • liaizon@wake.stL This user is from outside of this forum
                  liaizon@wake.stL This user is from outside of this forum
                  liaizon@wake.st
                  wrote on last edited by
                  #10

                  @julian frank stated in their post above here that they "added "https://lemmy.world/c/technology" , actual status is pending."

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

                    Yeah, as mentioned - Lemmy is often quite bad at sending the 'Accept' back for a Follow. It's particularly the case if the instance hasn't heard of you before, because in the process of fetching your user and instance details, it 'forgets' about the Accept. Within Lemmy, everyone's sort of got into the habit of 'Subscribe / Unsubscribe / Subscribe'. (where the first 'subscribe' lets them get your details, and the second one actually gets an 'Accept' back.)

                    PieFed is more reliable at sending 'Accept' back, so it's maybe useful to check your logic from this end with a community from there, e.g. https://piefed.social/c/antisocialmedia

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

                      @julian
                      Thanks! Accidentally reset my database, but I was in the midst of trying the following group actors:

                      anime@ani.social
                      rpgmemes@ttrpg.network

                      these two were my big tests, @ttrpg@a.gup.pe didn't seem to work too, but I forgot to re-test it after I manually took the null follow out from the database.

                      Should also note that the first two managed to show up in my original /world when following from my admin account, so I'm fairly sure posts were federating in properly to that

                      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

                        The logic is a little tricky to get right because there's a set sequence of steps that needs to happen in order for the group sync to succeed.

                        For example, between NodeBB and Lemmy:

                        1. NodeBB admin tries to follow a Lemmy community
                        2. NodeBB marks the follow as pending
                        3. Lemmy records NodeBB as a follower
                        4. Lemmy community tried to send an Accept back
                        5. NodeBB marks the follow as established.

                        If steps 1-3 succeed but 4-5 fail, then posts might be sent to NodeBB, but NodeBB will silently drop them because they're not addressed to anyone it thinks is following the sender.

                        @freamon thanks for the heads up about lemmy's accept shenanigans, I'll take that into account... or maybe ask Felix about it.

                        @arachnibot @FrankM

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

                          @julian

                          Got it! Restored my database last night, but yeah it seems even a re-follow didn't get much to my category actor (outside of manually federating a share from my old mastodon)

                          Oh wait, I just realized I never shared the webfinger for the actor. mentioned below
                          @test@nodebb.arachnibot.com

                          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

                            I opened an issue on Lemmy's repo

                            Link Preview Image
                            Allow `Group` type to subscribe to communities ยท Issue #5354 ยท LemmyNet/lemmy

                            Requirements Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support Did you check to see if this issue already exists? Is this only a feature request? Do not put multiple feature requests in one issu...

                            favicon

                            GitHub (github.com)

                            The thing is, what is the actual end-result you're looking for? It sounds like you want stuff from a remote lemmy community to be sent to your NodeBB. If that's the case, you could just follow the community as a user. Search for technology@lemmy.ml (for example) in the search bar, and once you follow the community, you will start seeing those posts in your /world feed.

                            The category synchronization options are for if you want to see a Lemmy community's posts in a category of your own. Might be that's what you want too.

                            But at present Lemmy doesn't support it ๐Ÿ™‚

                            1 Reply Last reply
                            0
                            • arachnibot@nodebb.arachnibot.comA This user is from outside of this forum
                              arachnibot@nodebb.arachnibot.comA This user is from outside of this forum
                              arachnibot@nodebb.arachnibot.com
                              wrote on last edited by
                              #16

                              @julian@community.nodebb.org Oh I think I get you? I Mainly wanted to sync remote group actors to a category for organizational purposes.

                              In my exact case it would be to collect foreign group actors together so me and my pals can have a more conglomerated niche feed (i.e the games category has posts from local and remote groups sharing stuff about games). Sort of like mastodon's lists, but with cleaner organization. (if you need a more practical example let me know!)

                              I've got lemmy instances working in my /world feed, so that's good news, at least. Though, it doesn't seem I can follow other nodebb categories with my testing ground either. (for instance, https://community.nodebb.org/category/30/activitypub responds with pending as well, even if the other actors are removed from the category's following requests)

                              Thank you either way! I know activitypub support been a big goal of yours, so I really appreciate all the hard work!

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

                                Looks like I was wrong before: whilst it's true that Lemmy isn't always great at sending an 'Accept' back, that's not the issue here. I was thinking about it from the perspective of a Person following a Group, not a Group following a Group.

                                It'll be interesting to see how the Lemmy devs respond. It's not really relevant for PieFed, because I'm not sure that there's communities there that have enough activity to warrant syncing to a category, but I thought about what would happen if you tried, and it would fail. The follower would be checked to see if they are a Person, and the request would go no further if not (there's no handy error returned, though).

                                I'm not sure it would be possible to enable, with the way the database is currently set up. We have a 'community_member' table, that looks like:

                                pyfedi=# \d community_member
                                                         Table "public.community_member"
                                      Column      |            Type             | Collation | Nullable | Default
                                ------------------+-----------------------------+-----------+----------+---------
                                 user_id          | integer                     |           | not null |
                                 community_id     | integer                     |           | not null |
                                 is_moderator     | boolean                     |           |          |
                                 is_owner         | boolean                     |           |          |
                                 is_banned        | boolean                     |           |          |
                                 notify_new_posts | boolean                     |           |          |
                                 created_at       | timestamp without time zone |           |          |
                                Indexes:
                                    "community_member_pkey" PRIMARY KEY, btree (user_id, community_id)
                                    "ix_community_member_is_banned" btree (is_banned)
                                Foreign-key constraints:
                                    "community_member_community_id_fkey" FOREIGN KEY (community_id) REFERENCES community(id)
                                    "community_member_user_id_fkey" FOREIGN KEY (user_id) REFERENCES "user"(id)
                                

                                So if the 'user_id' was actually a Group instead of a Person, then it would have a join to the wrong table.

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

                                  @arachnibot@nodebb.arachnibot.com said in Is ActivityPub too complicated?:
                                  > Mainly wanted to sync remote group actors to a category for organizational purposes.

                                  Yeah that's a great use case, and definitely what it ought to be used for. Let me look into nodebb-to-nodebb folllowing, that definitely should be working!

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

                                    @julian said in Is ActivityPub too complicated?:
                                    > Let me look into nodebb-to-nodebb folllowing, that definitely should be working!

                                    Have you had a chance to verified that it is? Because I'm getting a never-ending Pending status when trying to sync to @testing-ground. Things federate fine, but without the syncing being established, they either don't get addressed to my instance, or are dumped into /world if I specifically reference someone on my site. And it's a little weird that they're not all ending up in /world, because I have an account that's following @testing-ground.

                                    julian@community.nodebb.orgJ 1 Reply Last reply
                                    0
                                    • K kichae@community.nodebb.org

                                      @julian said in Is ActivityPub too complicated?:
                                      > Let me look into nodebb-to-nodebb folllowing, that definitely should be working!

                                      Have you had a chance to verified that it is? Because I'm getting a never-ending Pending status when trying to sync to @testing-ground. Things federate fine, but without the syncing being established, they either don't get addressed to my instance, or are dumped into /world if I specifically reference someone on my site. And it's a little weird that they're not all ending up in /world, because I have an account that's following @testing-ground.

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

                                      @Kichae I'm not seeing an issue (although I haven't done exhaustive testing) between my test instance and this site.

                                      Can you let me know one of your federating categories, so I can try to set up a sync?

                                      1 Reply Last reply
                                      0
                                      • frankm@community.nodebb.orgF frankm@community.nodebb.org

                                        767e2ed4-8089-40ab-92a8-7fb2204b20bd-image.png

                                        I thought that if I entered a Fediverse address here, like '@FrankM@nrw.social,' it would follow that user, and their posts would then appear in the corresponding category.

                                        But that's not happening. There's also no meaningful error message. The actor you see in the image probably appears because I entered an incorrect address.

                                        Does this feature need to be enabled on the Fediverse instance 'nrw.social'?

                                        Who can help?

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

                                        I tried to sync @testing@chebucto.club with @testing-ground.

                                        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