NodeBB v4.0.0 - Categories not following group actors
-
Not a bad idea. Whipped one up that can work on local and remote posts (though they might need to be followed by the category for it to count? Unsure if it'll work without that). Will report back if it's an idea worth pursuing in the morning
actually @julian , could you let me if filter:topic.create will happen even for remote posts that federate in? That's the hook I'm using right now, but wanna make sure it's not insane
-
julian@community.nodebb.organtwortete an arachnibot@community.nodebb.org zuletzt editiert von
@arachnibot yes, offhand I think it should (although I didn't check the code).
When remote content is parsed I just call the same internal methods to create a topic.
-
@arachnibot@community.nodebb.org can you share a link to it?
-
julian@community.nodebb.organtwortete an projectmoon@forum.agnos.is zuletzt editiert von
@projectmoon@forum.agnos.is @arachnibot I love how I want to add this to the core logic and someone beats me to it with a third party plugin.
It's absolutely fantastic, and exactly how our plugin system should work!
-
Was a link posted to it? Also I'm noticing that edits don't seem to fully federate. 🤨
-
julian@community.nodebb.organtwortete an projectmoon@forum.agnos.is zuletzt editiert von
@projectmoon@forum.agnos.is no link yet, was just speaking hypothetically
Report that NodeBB-NodeBB edits don't federate · Issue #13085 · NodeBB/NodeBB
Likely a regression if reproducible https://community.nodebb.org/post/https%3A%2F%2Fforum.agnos.is%2Fpost%2F16
GitHub (github.com)
-
@projectmoon@forum.agnos.is Adding UI for settings today. Will put on github once that's done (though I can share the core snippet in a bit). It can also work for auto-moving local tagged posts as well.
Should also mention that not every post from remote actors is tagged, so it might not catch everything. Could possibly have it just read any uncategorized posts and move based on users instead? Might be a better workaround for core, but if you have any thoughts let me know @julian@community.nodebb.org
-
projectmoon@forum.agnos.isantwortete an arachnibot@nodebb.arachnibot.com zuletzt editiert von
@arachnibot@nodebb.arachnibot.com said in NodeBB v4.0.0 - Categories not following group actors:
@projectmoon@forum.agnos.is Adding UI for settings today. Will put on github once that's done (though I can share the core snippet in a bit). It can also work for auto-moving local tagged posts as well.
Should also mention that not every post from remote actors is tagged, so it might not catch everything. Could possibly have it just read any uncategorized posts and move based on users instead? Might be a better workaround for core, but if you have any thoughts let me know @julian@community.nodebb.org
Sounds good. Looking forward to trying it out. If there's a way to tie the post back to a Group Actor "user" (which are the local NodeBB users that share/boost the content within NodeBB), then you could probably make the algorithm more reliable. I don't know anything about the internals of NodeBB, though. Just spitballing ideas.
-
arachnibot@nodebb.arachnibot.comantwortete an projectmoon@forum.agnos.is zuletzt editiert von
@projectmoon@forum.agnos.is actually once you mentioned that I got a rough version of that working. I'm not sure if reading the audience property is the right move, but we'll see if it works on my end I guess?
-
@arachnibot@nodebb.arachnibot.com Only one way to find out!
-
julian@community.nodebb.organtwortete an arachnibot@nodebb.arachnibot.com zuletzt editiert von
@arachnibot@nodebb.arachnibot.com for Lemmy? No, not anymore.
A future version of Lemmy will remove
audience
. You'll have to dereference the addressing fields (to
,cc
). -
Got it! I just noticed something similar, so thanks for the confirmation!
-
Ok! Almost set up with the plugin (though ACP controls are still pending for now). On the dev branch until I get the gui for config done.
GitHub - Arachnibot/nodebb-tag-to-category at dev
A starter kit for quickly creating NodeBB plugins. - GitHub - Arachnibot/nodebb-tag-to-category at dev
GitHub (github.com)
Only bug remaining is topics are not federated out by the group correctly. If anyone knows what triggers the category actor to share a post, let me know!
-
julian@community.nodebb.organtwortete an arachnibot@nodebb.arachnibot.com zuletzt editiert von
@arachnibot@nodebb.arachnibot.com mm actually this also doesn't happen currently when you manually move a topic to a category.
Your local account boosts it but not the category. That's a feature I'd like to add to core, please open an issue.