Skip to content
  • NodeBB v4.0.0 Beta

    ActivityPub
    19
    16 Votes
    19 Posts
    711 Views
    S
    @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), ]); }, };
  • Setting up an Editor's Draft

    Forums and Threaded Discussions Task Force
    5
    1 Votes
    5 Posts
    131 Views
    julianJ
    @[email protected] sorry, I invited somebody else in my address book haha
  • 3 Votes
    7 Posts
    260 Views
    damon@social.wedistribute.orgD
    @julian Yes, it was me. Thank you, I figured it was the one by Mr. Mike, thank you
  • Admin plugins page error

    General Discussion
    3
    0 Votes
    3 Posts
    132 Views
    phenomlabP
    Not sure if related, but [image: 1727957706381-8316a5d1-85c0-47c5-a0f1-205a6eb48b97-image.png] Installs fine via CLI
  • `Update(Note)` quirk

    ActivityPub
    11
    8 Votes
    11 Posts
    255 Views
    thisismissem@socialhub.activitypub.rocksT
    julian:This whole thing could actually be sidestepped if we sent timestamps with our activities, but that's not in the spec, so I guess nobody does it heh.This sounds like a wonderful FEP!
  • [nodebb-plugin-feed] NodeBB Feed Plugin

    NodeBB Plugins
    19
    7 Votes
    19 Posts
    3k Views
    barisB
    @dave1904 thanks for reporting, fixed in 3.1.27.
  • 0 Votes
    15 Posts
    369 Views
    trwnh@mastodon.socialT
    @silverpill @mikedev @julian the default assumption should not be "full representation", because you can never have the entire set of knowable facts about a given subject.what we should strive for instead is to make sure that any representation served is useful. this is not the same thing as it being "full". for example, there may be private attributes that are not being served.
  • Reporting In The Shoutbox

    Feature Requests
    1
    0 Votes
    1 Posts
    102 Views
    A
    Is there a feature to report messages in the shoutbox or chat system? quite curious
  • Is there a way to set up a Time-To-Live for a post?

    General Discussion
    1
    0 Votes
    1 Posts
    106 Views
    D
    Is there a way to set up a Time-To-Live for a post? For example, I want to have an option for a post to display for exactly 'X' hours (selectable between 1 and 72 hours) after it is posted and then not display anymore automatically. Post still in the database and still viewable by poster (only), but gone from main forum.
  • 0 Votes
    54 Posts
    2k Views
    julianJ
    While discussing what is contained in the context collection, I'd like to clarify what exactly is being Add'ed in 400e and (the upcoming) 171b, and whether that also coincides with the collection items. That is, if a context collection contains only simple objects, then the assumption is that context owner will only federate an Add out for simple objects. Likewise if the collection contains activities, then I'd expect Add(Like(Note)) to come from that owner. However, a quick re-reading of 400e suggests that only simply objects are federated out via Add. That would tip the scale a bit toward the context containing only objects.
  • 21 Votes
    122 Posts
    5k Views
    julianJ
    @dariusk I may be overly optimistic, but I'd like to move forward thinking that perhaps that was then and this is now. Let's chat tomorrow (?) about the merits of your implementation and see whether we can make some waves!
  • 0 Votes
    5 Posts
    286 Views
    ciallooC
    problem solved today, thank baris
  • Plugin search not working properly in v4.0 beta

    Bug Reports
    10
    0 Votes
    10 Posts
    218 Views
    barisB
    https://github.com/NodeBB/NodeBB/commit/c4a60dbbcc75499492eb793d31e6364d60f150ee With this change, doing a search on the Find Plugins tab will show all matches, looks like all the plugins were already available in ajaxify.data.incompatible so it will search in that array too.
  • 1 Votes
    3 Posts
    220 Views
    julianJ
    As @baris said, yes, definitely! NodeBB is still the same great community engine underneath. The ActivityPub work is simply one facet of NodeBB that will hopefully provide some benefit to those interested, but if that's not your cup of tea you can leave it disabled.
  • Test post, greetings from lemmy

    ActivityPub
    2
    1 Votes
    2 Posts
    108 Views
    julianJ
    @[email protected] sort of? It went through but did not get categorized correctly. Nevertheless I will move it over for you.
  • 13 Votes
    30 Posts
    1k Views
    phenomlabP
    @julian yes
  • 10 Votes
    5 Posts
    216 Views
    scott@authorship.studioS
    Interesting. I received a repeat notification from @ActivityPub on my last comment. I suppose that is how you are acknowledging that my post was sent to people following that category. I like it.
  • Boosting fediverse posts into a local category

    ActivityPub
    4
    0 Votes
    4 Posts
    158 Views
    caesarC
    And yes, it works! It's certainly unintuitive but that's fair enough for a work in progress! It doesn't appear in the recent posts for that category (it was an empty category and still says "no new posts"), but that's a minor detail.
  • v4.0.0-beta.1 bugs & issues thread

    ActivityPub
    8
    0 Votes
    8 Posts
    230 Views
    caesarC
    Ok, found the problem. It only works with the privilege guests / View Users enabled. I had fediverse / View Users enabled anyway but that wasn't enough. I'm not sure if that's intended? I guess it makes sense in principle…
  • How to present excerpt topics?

    General Discussion
    7
    0 Votes
    7 Posts
    319 Views
    barisB
    https://github.com/NodeBB/nodebb-plugin-feed does something similar, it loads the main post of the topics and displays them at /feed