NodeBB v4.0.0 Beta
-
@sweetp does it correspond to an existing category? Or are all of your categories represented in the output above?
-
@Julian all my categories are repesented by the log output
-
@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), ]); }, };
-
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.orgreplied to kichae@lemmy.ca last edited by
@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.
-
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 ForumsFan Clubs Social Networking Platform
Fan Clubs is a social networking platform where content creators, sports fans, and gamers can connect with their communities.
Fan Clubs (www.fanclubs.org)
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.
JimiWikman.se (jimiwikman.se)
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
Inter Milan : Communauté Francophone des Nerazzurri (www.internazionale.fr)
-
@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.
-
@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.
-
kichae@community.nodebb.orgreplied to kichae@lemmy.ca last edited by
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.
-
@Kichae no the group actors are fine too. We implement the same sharing system that Lemmy implements.
-
kichae@community.nodebb.orgreplied to kichae@lemmy.ca last edited by
Hmm, ok. Unexpected and unintended interactions (or lack there of) it is, then. Fun!
-
@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!
-
kichae@community.nodebb.orgreplied to kichae@lemmy.ca last edited by
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.
-
@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)
-
kichae@community.nodebb.orgreplied to kichae@lemmy.ca last edited by
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.
-
@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.
-
kichae@community.nodebb.orgreplied to kichae@lemmy.ca last edited by
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.
-
@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.
-
@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.
-
@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.