Skip to content

NodeBB v4.3.0 — Remote Categories are a go!

ActivityPub Test Kategorie
  • @julian I'm not sure if you know about this, but your entire post appears both as a content warning and the expanded post, both contain the exact same text. Is that issue known? btw, I'm on go to social, so perhaps that could be a factor too?

  • Those having an issue with eslint, can just remove the node_modules folder in their nodebb folder and run ./nodebb upgrade again.

  • @baris it's still crashing for me

    $ rm -rf node_modules
    $ ./nodebb upgrade
    npm error code ERESOLVE
    npm error ERESOLVE could not resolve
    npm error
    npm error While resolving: nodebb@4.3.0
    npm error Found: eslint@8.57.1
    npm error node_modules/eslint
    npm error   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.3.0
    npm error   node_modules/@eslint-community/eslint-utils
    npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@8.57.1
    npm error   peer eslint@"^7.32.0 || ^8.2.0" from eslint-config-airbnb-base@15.0.0
    npm error   node_modules/eslint-config-airbnb-base
    npm error     eslint-config-airbnb-base@"15.0.0" from eslint-config-nodebb@0.2.1
    npm error     node_modules/eslint-config-nodebb
    npm error       dev eslint-config-nodebb@"1.1.4" from the root project
    npm error   3 more (eslint-config-nodebb, eslint-plugin-import, nodebb-plugin-2factor)
    npm error
    npm error Could not resolve dependency:
    npm error dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Conflicting peer dependency: eslint@9.25.1
    npm error node_modules/eslint
    npm error   peer eslint@">=9.0.0" from @stylistic/eslint-plugin-js@4.2.0
    npm error   node_modules/@stylistic/eslint-plugin-js
    npm error     dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Fix the upstream dependency conflict, or retry
    npm error this command with --force or --legacy-peer-deps
    npm error to accept an incorrect (and potentially broken) dependency resolution.
    npm error
    npm error
    npm error For a full report see:
    npm error .../.npm/_logs/2025-05-01T13_28_21_731Z-eresolve-report.txt
    npm error A complete log of this run can be found in: .../.npm/_logs/2025-05-01T13_28_21_731Z-debug-0.log
    Error installing dependencies!
    message: Command failed: npm install --omit=dev
    stdout: null
    stderr: null
    .../NodeBB/src/cli/index.js:65
    		throw e;
    		^
    
    Error: Command failed: npm install --omit=dev
        at genericNodeError (node:internal/errors:983:15)
        at wrappedFn (node:internal/errors:537:14)
        at checkExecSyncError (node:child_process:882:11)
        at Object.execSync (node:child_process:954:15)
        at pkgInstall.installAll (.../NodeBB/src/cli/package-install.js:129:9)
        at Object. (.../NodeBB/src/cli/index.js:18:19)
        at Module._compile (node:internal/modules/cjs/loader:1734:14)
        at Object..js (node:internal/modules/cjs/loader:1899:10)
        at Module.load (node:internal/modules/cjs/loader:1469:32)
        at Function._load (node:internal/modules/cjs/loader:1286:12) {
      status: 1,
      signal: null,
      output: [ null, null, null ],
      pid: 2729523,
      stdout: null,
      stderr: null
    }
    
    Node.js v23.11.0
    
  • Do you have eslint-config-airbnb-base in your package.json? We don't use that dependency anymore so it shouldn't be in package.json.

  • @baris nope:

    {
        "name": "nodebb",
        "license": "GPL-3.0",
        "description": "NodeBB Forum",
        "version": "4.3.0",
        "homepage": "https://www.nodebb.org",
        "repository": {
            "type": "git",
            "url": "https://github.com/NodeBB/NodeBB/"
        },
        "main": "app.js",
        "scripts": {
            "start": "node loader.js",
            "lint": "eslint --cache ./nodebb .",
            "test": "nyc --reporter=html --reporter=text-summary mocha",
            "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info",
            "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage"
        },
        "husky": {
            "hooks": {
                "pre-commit": "npx lint-staged",
                "commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS"
            }
        },
        "lint-staged": {
            "*.js": [
                "eslint --fix"
            ]
        },
        "dependencies": {
            "@adactive/bootstrap-tagsinput": "0.8.2",
            "@fontsource/inter": "5.2.5",
            "@fontsource/poppins": "5.2.5",
            "@fortawesome/fontawesome-free": "6.7.2",
            "@isaacs/ttlcache": "1.4.1",
            "[@nodebb](https://community.nodebb.org/user/nodebb)/spider-detector": "2.0.3",
            "@popperjs/core": "2.11.8",
            "@resvg/resvg-js": "2.6.2",
            "@socket.io/redis-adapter": "8.3.0",
            "@textcomplete/contenteditable": "0.1.13",
            "@textcomplete/core": "0.1.13",
            "@textcomplete/textarea": "0.1.13",
            "ace-builds": "1.40.1",
            "archiver": "7.0.1",
            "async": "3.2.6",
            "autoprefixer": "10.4.21",
            "bcryptjs": "3.0.2",
            "benchpressjs": "2.5.5",
            "body-parser": "2.2.0",
            "bootbox": "6.0.3",
            "bootstrap": "5.3.5",
            "bootswatch": "5.3.5",
            "chalk": "4.1.2",
            "chart.js": "4.4.9",
            "cli-graph": "3.2.2",
            "clipboard": "2.0.11",
            "commander": "13.1.0",
            "compare-versions": "6.1.1",
            "compression": "1.8.0",
            "connect-flash": "0.1.1",
            "connect-mongo": "5.1.0",
            "connect-multiparty": "2.2.0",
            "connect-pg-simple": "10.0.0",
            "connect-redis": "8.0.3",
            "cookie-parser": "1.4.7",
            "cron": "4.3.0",
            "cropperjs": "1.6.2",
            "csrf-sync": "4.1.0",
            "daemon": "1.1.0",
            "diff": "7.0.0",
            "esbuild": "0.25.3",
            "express": "4.21.2",
            "express-session": "1.18.1",
            "express-useragent": "1.0.15",
            "fetch-cookie": "3.1.0",
            "file-loader": "6.2.0",
            "fs-extra": "11.3.0",
            "graceful-fs": "4.2.11",
            "helmet": "7.2.0",
            "html-to-text": "9.0.5",
            "imagesloaded": "5.0.0",
            "ioredis": "5.6.1",
            "ipaddr.js": "2.2.0",
            "jquery": "3.7.1",
            "jquery-deserialize": "2.0.0",
            "jquery-form": "4.3.0",
            "jquery-serializeobject": "1.0.0",
            "jquery-ui": "1.14.1",
            "jsesc": "3.1.0",
            "json2csv": "5.0.7",
            "jsonwebtoken": "9.0.2",
            "lodash": "4.17.21",
            "logrotate-stream": "0.2.9",
            "lru-cache": "10.4.3",
            "mime": "3.0.0",
            "mkdirp": "3.0.1",
            "mongodb": "6.16.0",
            "morgan": "1.10.0",
            "mousetrap": "1.6.5",
            "multiparty": "4.2.3",
            "nconf": "0.13.0",
            "nodebb-plugin-2factor": "7.5.9",
            "nodebb-plugin-composer-default": "10.2.49",
            "nodebb-plugin-dbsearch": "6.2.15",
            "nodebb-plugin-emoji": "6.0.2",
            "nodebb-plugin-emoji-android": "4.1.1",
            "nodebb-plugin-imgur": "^4.1.0",
            "nodebb-plugin-markdown": "13.1.1",
            "nodebb-plugin-mentions": "4.7.3",
            "nodebb-plugin-ntfy": "1.7.7",
            "nodebb-plugin-soundpack-default": "^3.0.1",
            "nodebb-plugin-spam-be-gone": "2.3.1",
            "nodebb-plugin-web-push": "0.7.3",
            "nodebb-rewards-essentials": "1.0.1",
            "nodebb-theme-harmony": "2.1.11",
            "nodebb-theme-harmony-sweetp": "git+https://git@github.com/sweetppro/nodebb-theme-sweetp.git#master",
            "nodebb-theme-lavender": "7.1.18",
            "nodebb-theme-peace": "2.2.40",
            "nodebb-theme-persona": "14.1.9",
            "nodebb-theme-slick": "2.0.2",
            "nodebb-theme-vanilla": "12.1.19",
            "nodebb-widget-essentials": "7.0.36",
            "nodemailer": "6.10.1",
            "nprogress": "0.2.0",
            "passport": "0.7.0",
            "passport-http-bearer": "1.0.1",
            "passport-local": "1.0.0",
            "pg": "8.15.6",
            "pg-cursor": "2.14.6",
            "postcss": "8.5.3",
            "postcss-clean": "1.2.0",
            "progress-webpack-plugin": "1.0.16",
            "prompt": "1.3.0",
            "rimraf": "5.0.10",
            "rss": "1.2.2",
            "rtlcss": "4.3.0",
            "sanitize-html": "2.16.0",
            "sass": "1.87.0",
            "satori": "0.12.2",
            "semver": "7.7.1",
            "serve-favicon": "2.5.0",
            "sharp": "0.32.6",
            "sitemap": "8.0.0",
            "socket.io": "4.8.1",
            "socket.io-client": "4.8.1",
            "sortablejs": "1.15.6",
            "spdx-license-list": "6.10.0",
            "terser-webpack-plugin": "5.3.14",
            "textcomplete": "0.18.2",
            "textcomplete.contenteditable": "0.1.1",
            "timeago": "1.6.7",
            "tinycon": "0.6.8",
            "toobusy-js": "0.5.1",
            "tough-cookie": "5.1.2",
            "validator": "13.15.0",
            "webpack": "5.99.7",
            "webpack-merge": "6.0.1",
            "winston": "3.17.0",
            "workerpool": "9.2.0",
            "xml": "1.0.1",
            "xregexp": "5.1.2",
            "yargs": "17.7.2",
            "zxcvbn": "4.4.2"
        },
        "devDependencies": {
            "@apidevtools/swagger-parser": "10.1.0",
            "@commitlint/cli": "19.8.0",
            "@commitlint/config-angular": "19.8.0",
            "coveralls": "3.1.1",
            "@eslint/js": "9.25.1",
            "@stylistic/eslint-plugin-js": "4.2.0",
            "eslint-config-nodebb": "1.1.4",
            "eslint-plugin-import": "2.31.0",
            "grunt": "1.6.1",
            "grunt-contrib-watch": "1.1.0",
            "husky": "8.0.3",
            "jsdom": "26.1.0",
            "lint-staged": "15.5.1",
            "mocha": "11.1.0",
            "mocha-lcov-reporter": "1.3.0",
            "mockdate": "3.0.5",
            "nyc": "17.1.0",
            "smtp-server": "3.13.6"
        },
        "bugs": {
            "url": "https://github.com/NodeBB/NodeBB/issues"
        },
        "engines": {
            "node": ">=18"
        },
        "maintainers": [
            {
                "name": "Julian Lam",
                "email": "julian@nodebb.org",
                "url": "https://github.com/julianlam"
            },
            {
                "name": "Barış Soner Uşaklı",
                "email": "baris@nodebb.org",
                "url": "https://github.com/barisusakli"
            },
            {
                "name": "Barış Soner Uşaklı",
                "email": "baris@nodebb.org",
                "url": "https://github.com/barisusakli"
            }
        ],
        "nyc": {
            "exclude": [
                "src/upgrades/*",
                "test/*"
            ]
        },
        "resolutions": {
            "*/jquery": "3.7.1"
        },
        "optionalDependencies": {
            "sass-embedded": "1.87.0"
        }
    }
    
  • What happens when you try the below

    npm r eslint-config-airbnb-base
    npm r eslint-config-nodebb
    rm -rf node_modules/
    npm i
    
  • @baris same issue unfortunately:

    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm error code ERESOLVE
    npm error ERESOLVE could not resolve
    npm error
    npm error While resolving: nodebb@4.3.0
    npm error Found: eslint@8.57.1
    npm error node_modules/eslint
    npm error   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.3.0
    npm error   node_modules/@eslint-community/eslint-utils
    npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@8.57.1
    npm error   peer eslint@"^7.32.0 || ^8.2.0" from eslint-config-airbnb-base@15.0.0
    npm error   node_modules/eslint-config-airbnb-base
    npm error     eslint-config-airbnb-base@"15.0.0" from eslint-config-nodebb@0.2.1
    npm error     node_modules/eslint-config-nodebb
    npm error       dev eslint-config-nodebb@"1.1.4" from the root project
    npm error   3 more (eslint-config-nodebb, eslint-plugin-import, nodebb-plugin-2factor)
    npm error
    npm error Could not resolve dependency:
    npm error dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Conflicting peer dependency: eslint@9.25.1
    npm error node_modules/eslint
    npm error   peer eslint@">=9.0.0" from @stylistic/eslint-plugin-js@4.2.0
    npm error   node_modules/@stylistic/eslint-plugin-js
    npm error     dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Fix the upstream dependency conflict, or retry
    npm error this command with --force or --legacy-peer-deps
    npm error to accept an incorrect (and potentially broken) dependency resolution.
    npm error
    npm error
    npm error For a full report see:
    npm error .../.npm/_logs/2025-05-01T13_56_37_050Z-eresolve-report.txt
    npm error A complete log of this run can be found in: .../.npm/_logs/2025-05-01T13_56_37_050Z-debug-0.log
    Error installing dependencies!
    message: Command failed: npm install --omit=dev
    stdout: null
    stderr: null
    .../NodeBB/src/cli/package-install.js:138
    		throw e;
    		^
    
    Error: Command failed: npm install --omit=dev
        at genericNodeError (node:internal/errors:983:15)
        at wrappedFn (node:internal/errors:537:14)
        at checkExecSyncError (node:child_process:882:11)
        at Object.execSync (node:child_process:954:15)
        at pkgInstall.installAll (.../NodeBB/src/cli/package-install.js:129:9)
        at Object. (.../NodeBB/src/cli/index.js:50:18)
        at Module._compile (node:internal/modules/cjs/loader:1734:14)
        at Object..js (node:internal/modules/cjs/loader:1899:10)
        at Module.load (node:internal/modules/cjs/loader:1469:32)
        at Function._load (node:internal/modules/cjs/loader:1286:12) {
      status: 1,
      signal: null,
      output: [ null, null, null ],
      pid: 2732894,
      stdout: null,
      stderr: null
    }
    
    Node.js v23.11.0
    
  • Try removing package-lock.json as well see what happens.

    npm r eslint-config-airbnb-base
    npm r eslint-config-nodebb
    rm package-lock.json
    rm -rf node_modules/
    npm i
    
  • @baris that worked!
    🚀 🙂

  • @julian I'm not sure if you know about this, but your entire post appears both as a content warning and the expanded post, both contain the exact same text. Is that issue known? btw, I'm on go to social, so perhaps that could be a factor too?

    @esoteric_programmer@social.stealthy.club that's likely because GtS handles summary as a content warning for everything. The whole summary and content warning business is in flux right now, so hopefully a standard will be set soon.

  • Live testing of remote categories

    ActivityPub Test Kategorie activitypub nodebbactivityp
    63
    2
    0 Stimmen
    63 Beiträge
    951 Aufrufe
    julian@community.nodebb.orgJ
    @pfefferle@mastodon.social just wanted to poke you about this issue again. The latest updates to NodeBB now do a webfinger backcheck to ensure that the actor has a valid webfinger entry for their purported handle. If it does not, then the user is not properly created. Mastodon also does this. This check is probably for security as well as for preventing handle collisions. The multilingual plugin in conjunction with the ActivityPub plugin creates users that share the same handle, and that causes issues with federated content. For example, this article by @jonvt@vivaldi.com will load up just fine in Mastodon, but this japanese article by @akira@vivaldi.com will not, because that second article's attributedTo is https://vivaldi.com/ja/?author=176, which fails that check (the author's ID is actually https://vivaldi.com?author=176 as per the handle backcheck) cc @AltCode
  • 1 Stimmen
    7 Beiträge
    75 Aufrufe
    julian@community.nodebb.orgJ
    @eeeee I believe LemmyBB was a proof-of-concept, to show that Lemmy as it existed back then was able to be represented in the front-end as a tradtional forum. But also, nutomic (who may have made LemmyBB? not sure.) is a busy person who has a day job and doesn't work on lemmy full-time
  • NodeBB - Security Vulnerability Notifications

    NodeBB nodebb security
    1
    0 Stimmen
    1 Beiträge
    86 Aufrufe
    Niemand hat geantwortet
  • NodeBB - v3.0.0-rc.1

    NodeBB nodebb
    1
    3
    0 Stimmen
    1 Beiträge
    97 Aufrufe
    Niemand hat geantwortet
  • 0 Stimmen
    3 Beiträge
    27 Aufrufe
    julian@community.nodebb.orgJ
    Good lord @liaizon@social.wake.st did you just necro a 3 year old topic
  • NodeBB - Update

    Angeheftet NodeBB nodebb
    1
    0 Stimmen
    1 Beiträge
    84 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Git Prozess

    NodeBB nodebb
    2
    0 Stimmen
    2 Beiträge
    129 Aufrufe
    FrankMF
    Heute gab es ein Update von 2.4.5 -> 2.5.0 Das oben geschriebene funktioniert nicht git fetch git reset --hard origin/v2.x ./nodebb upgrade Ausschnitt der Konsole ~/nodebb$ git fetch remote: Enumerating objects: 244, done. remote: Counting objects: 100% (239/239), done. remote: Compressing objects: 100% (100/100), done. remote: Total 244 (delta 160), reused 212 (delta 138), pack-reused 5 Receiving objects: 100% (244/244), 55.57 KiB | 7.94 MiB/s, done. Resolving deltas: 100% (160/160), completed with 62 local objects. From https://github.com/NodeBB/NodeBB dd3e1a2861..01d276cbee v2.x -> origin/v2.x * [new branch] async-zxcvbn -> origin/async-zxcvbn 9260b4ef19..d06938d877 bootstrap5 -> origin/bootstrap5 884d40756a..8fe41d92a2 develop -> origin/develop a088eb19af..1076285dc9 master -> origin/master + b7d916c321...c85ac68373 renovate/ace-builds-1.x -> origin/renovate/ace-builds-1.x (forced update) * [new tag] v2.5.0 -> v2.5.0 :~/nodebb$ git reset --hard origin/v2.x HEAD is now at 01d276cbee chore: incrementing version number - v2.5.0 :~/nodebb$ ./nodebb upgrade Updating NodeBB...
  • Upgrade auf NodeBB 1.11.0

    NodeBB nodebb linux
    1
    1
    0 Stimmen
    1 Beiträge
    405 Aufrufe
    Niemand hat geantwortet