From 1c4c4f571703789f43d34e00ce29cc36e72ede54 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:20:29 -0500 Subject: [PATCH 1/5] chore(deps): update dependency lint-staged to v15.4.0 (#13059) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- install/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/package.json b/install/package.json index 4307c41569..069d8092c9 100644 --- a/install/package.json +++ b/install/package.json @@ -169,7 +169,7 @@ "grunt-contrib-watch": "1.1.0", "husky": "8.0.3", "jsdom": "26.0.0", - "lint-staged": "15.3.0", + "lint-staged": "15.4.0", "mocha": "11.0.1", "mocha-lcov-reporter": "1.3.0", "mockdate": "3.0.5", From 499df8abf58cc283166e2c676aaed75c9f091359 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 16 Jan 2025 16:47:22 -0500 Subject: [PATCH 2/5] chore: bump markdown, harmony, and persona to new major versions --- install/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/package.json b/install/package.json index 069d8092c9..8725f1cb82 100644 --- a/install/package.json +++ b/install/package.json @@ -103,15 +103,15 @@ "nodebb-plugin-dbsearch": "6.2.5", "nodebb-plugin-emoji": "6.0.1", "nodebb-plugin-emoji-android": "4.1.1", - "nodebb-plugin-markdown": "13.0.0-pre.10", + "nodebb-plugin-markdown": "13.0.0", "nodebb-plugin-mentions": "4.6.10", "nodebb-plugin-spam-be-gone": "2.3.0", "nodebb-plugin-web-push": "0.7.2", "nodebb-rewards-essentials": "1.0.0", - "nodebb-theme-harmony": "2.0.0-pre.46", + "nodebb-theme-harmony": "2.0.0", "nodebb-theme-lavender": "7.1.17", "nodebb-theme-peace": "2.2.33", - "nodebb-theme-persona": "14.0.0-pre.5", + "nodebb-theme-persona": "14.0.0", "nodebb-widget-essentials": "7.0.32", "nodemailer": "6.9.16", "nprogress": "0.2.0", From 3e08eb392504195b8794a88755c11d3fe1ca94fc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 16 Jan 2025 16:54:28 -0500 Subject: [PATCH 3/5] chore: bump persona --- install/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/package.json b/install/package.json index 8725f1cb82..4ccdf409f3 100644 --- a/install/package.json +++ b/install/package.json @@ -111,7 +111,7 @@ "nodebb-theme-harmony": "2.0.0", "nodebb-theme-lavender": "7.1.17", "nodebb-theme-peace": "2.2.33", - "nodebb-theme-persona": "14.0.0", + "nodebb-theme-persona": "14.0.1", "nodebb-widget-essentials": "7.0.32", "nodemailer": "6.9.16", "nprogress": "0.2.0", From af4d07fba4099bcfd97ad67de4a5842f621ae257 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 20 Jan 2025 12:05:17 -0500 Subject: [PATCH 4/5] feat: fix activitypub toggler to be more complete; tests. #13054 --- public/language/en-GB/error.json | 1 + src/activitypub/helpers.js | 6 ++++ src/activitypub/index.js | 8 +++++ src/controllers/activitypub/index.js | 3 +- src/controllers/api.js | 2 +- test/activitypub.js | 47 +++++++++++++++++++++++++++- 6 files changed, 64 insertions(+), 3 deletions(-) diff --git a/public/language/en-GB/error.json b/public/language/en-GB/error.json index edeb03b21d..caa23964b4 100644 --- a/public/language/en-GB/error.json +++ b/public/language/en-GB/error.json @@ -289,6 +289,7 @@ "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js index 9a5ac54e33..dd0b0c05ff 100644 --- a/src/activitypub/helpers.js +++ b/src/activitypub/helpers.js @@ -28,7 +28,13 @@ const sha256 = payload => crypto.createHash('sha256').update(payload).digest('he const Helpers = module.exports; +let _lastLog; Helpers.log = (message) => { + if (!message) { + return _lastLog; + } + + _lastLog = message; if (process.env.NODE_ENV === 'development') { winston.verbose(message); } diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 2043f127a6..4a6d95b48b 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -263,6 +263,10 @@ ActivityPub.verify = async (req) => { }; ActivityPub.get = async (type, id, uri, options) => { + if (!meta.config.activitypubEnabled) { + throw new Error('[[error:activitypub.not-enabled]]'); + } + options = { cache: true, ...options, @@ -358,6 +362,10 @@ async function sendMessage(uri, id, type, payload, attempts = 1) { } ActivityPub.send = async (type, id, targets, payload) => { + if (!meta.config.activitypubEnabled) { + return ActivityPub.helpers.log('[activitypub/send] Federation not enabled; not sending.'); + } + if (!Array.isArray(targets)) { targets = [targets]; } diff --git a/src/controllers/activitypub/index.js b/src/controllers/activitypub/index.js index ad18451d04..ccf85b2012 100644 --- a/src/controllers/activitypub/index.js +++ b/src/controllers/activitypub/index.js @@ -3,6 +3,7 @@ const nconf = require('nconf'); const winston = require('winston'); +const meta = require('../../meta'); const user = require('../../user'); const activitypub = require('../../activitypub'); const helpers = require('../helpers'); @@ -14,7 +15,7 @@ Controller.topics = require('./topics'); Controller.fetch = async (req, res, next) => { // Given a `resource` query parameter, attempts to retrieve and parse it - if (!req.query.resource) { + if (!meta.config.activitypubEnabled || !req.query.resource) { return next(); } diff --git a/src/controllers/api.js b/src/controllers/api.js index 9b85dd2d30..3f676803cf 100644 --- a/src/controllers/api.js +++ b/src/controllers/api.js @@ -99,7 +99,7 @@ apiController.loadConfig = async function (req) { version: fontawesome_version, }, activitypub: { - probe: meta.config.activitypubProbe, + probe: meta.config.activitypubEnabled && meta.config.activitypubProbe, }, }; diff --git a/test/activitypub.js b/test/activitypub.js index 3465707203..be7323ad3f 100644 --- a/test/activitypub.js +++ b/test/activitypub.js @@ -11,7 +11,6 @@ const request = require('../src/request'); const file = require('../src/file'); const install = require('../src/install'); -const privileges = require('../src/privileges'); const meta = require('../src/meta'); const user = require('../src/user'); const categories = require('../src/categories'); @@ -29,6 +28,52 @@ describe('ActivityPub integration', () => { delete meta.config.activitypubEnabled; }); + describe.only('Master toggle', () => { + before(async () => { + delete meta.config.activitypubEnabled; + }); + + it('calls to activitypub.get should throw', async () => { + await assert.rejects( + activitypub.get('uid', 0, 'https://example.org'), + { message: '[[error:activitypub.not-enabled]]' }, + ); + }); + + it('calls to activitypub.send should silently log', async () => { + await activitypub.send('uid', 0, ['https://example.org'], { foo: 'bar' }); + assert.strictEqual(activitypub.helpers.log(), '[activitypub/send] Federation not enabled; not sending.') + }); + + it('request for an activitypub route should return 404 Not Found', async () => { + const uid = user.create({ username: utils.generateUUID() }); + const { response } = await request.get(`${nconf.get('url')}/uid/${uid}`, { + headers: { + Accept: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', + }, + }); + + assert.strictEqual(response.statusCode, 404); + }); + + it('requests to the /ap endpoint should return 404 Not Found', async () => { + const { response } = await request.get(`${nconf.get('url')}/ap?resource=${encodeURIComponent('https://example.org')}`); + assert.strictEqual(response.statusCode, 404); + }); + + it('webfinger requests to a local user should not indicate an application/activity+json endpoint', async () => { + const username = utils.generateUUID().slice(0, 8); + user.create({ username }); + const { response, body } = await request.get(`${nconf.get('url')}/.well-known/webfinger?resource=acct:${username}@${nconf.get('url_parsed').host}`); + + assert.strictEqual(response.statusCode, 200); + }); + + after(() => { + meta.config.activitypubEnabled = 1; + }); + }); + describe('Helpers', () => { describe('.query()', () => { From e53b3737d8b7f40a1949b163977e59904e145804 Mon Sep 17 00:00:00 2001 From: Misty Release Bot Date: Mon, 20 Jan 2025 17:05:50 +0000 Subject: [PATCH 5/5] chore(i18n): fallback strings for new resources: nodebb.error --- public/language/ar/error.json | 1 + public/language/bg/error.json | 1 + public/language/bn/error.json | 1 + public/language/cs/error.json | 1 + public/language/da/error.json | 1 + public/language/de/error.json | 1 + public/language/el/error.json | 1 + public/language/en-US/error.json | 1 + public/language/en-x-pirate/error.json | 1 + public/language/es/error.json | 1 + public/language/et/error.json | 1 + public/language/fa-IR/error.json | 1 + public/language/fi/error.json | 1 + public/language/fr/error.json | 1 + public/language/gl/error.json | 1 + public/language/he/error.json | 1 + public/language/hr/error.json | 1 + public/language/hu/error.json | 1 + public/language/hy/error.json | 1 + public/language/id/error.json | 1 + public/language/it/error.json | 1 + public/language/ja/error.json | 1 + public/language/ko/error.json | 1 + public/language/lt/error.json | 1 + public/language/lv/error.json | 1 + public/language/ms/error.json | 1 + public/language/nb/error.json | 1 + public/language/nl/error.json | 1 + public/language/nn-NO/error.json | 1 + public/language/pl/error.json | 1 + public/language/pt-BR/error.json | 1 + public/language/pt-PT/error.json | 1 + public/language/ro/error.json | 1 + public/language/ru/error.json | 1 + public/language/rw/error.json | 1 + public/language/sc/error.json | 1 + public/language/sk/error.json | 1 + public/language/sl/error.json | 1 + public/language/sq-AL/error.json | 1 + public/language/sr/error.json | 1 + public/language/sv/error.json | 1 + public/language/th/error.json | 1 + public/language/tr/error.json | 1 + public/language/uk/error.json | 1 + public/language/vi/error.json | 1 + public/language/zh-CN/error.json | 1 + public/language/zh-TW/error.json | 1 + 47 files changed, 47 insertions(+) diff --git a/public/language/ar/error.json b/public/language/ar/error.json index 21afc1e453..addd07fd9c 100644 --- a/public/language/ar/error.json +++ b/public/language/ar/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/bg/error.json b/public/language/bg/error.json index e2e640f541..30952b74ec 100644 --- a/public/language/bg/error.json +++ b/public/language/bg/error.json @@ -249,6 +249,7 @@ "api.501": "Пътят, който се опитвате да извикате, все още не съществува. Моля, опитайте отново утре.", "api.503": "Пътят, който се опитвате да извикате, в момента не е достъпен, поради настройките на сървъра.", "api.reauth-required": "Ресурсът, който се опитвате да достъпите, изисква (повторно) удостоверяване.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Входният идентификатор не може да бъде разпознат – може да е неправилен.", "activitypub.get-failed": "Посоченият материал не може да бъде получен.", "activitypub.pubKey-not-found": "Публичният ключ не може да бъде разпознат, така че потвърждението на данните не може да бъде извършено.", diff --git a/public/language/bn/error.json b/public/language/bn/error.json index 6b88283b27..4509d0dba3 100644 --- a/public/language/bn/error.json +++ b/public/language/bn/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/cs/error.json b/public/language/cs/error.json index af1bbc15b6..0f33bfcd0d 100644 --- a/public/language/cs/error.json +++ b/public/language/cs/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/da/error.json b/public/language/da/error.json index 804a272015..ea4d8cd145 100644 --- a/public/language/da/error.json +++ b/public/language/da/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/de/error.json b/public/language/de/error.json index a7e005a3dd..2cdb346ff6 100644 --- a/public/language/de/error.json +++ b/public/language/de/error.json @@ -249,6 +249,7 @@ "api.501": "Die Route, die Sie anrufen möchten, ist noch nicht implementiert. Bitte versuchen Sie es morgen erneut", "api.503": "Die Route, die Sie anrufen möchten, ist derzeit aufgrund einer Serverkonfiguration nicht verfügbar", "api.reauth-required": "Die angeforderte Ressource erfordert eine (Re-)Authentifizierung.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/el/error.json b/public/language/el/error.json index e158e5dda3..280e7c9a92 100644 --- a/public/language/el/error.json +++ b/public/language/el/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/en-US/error.json b/public/language/en-US/error.json index cf9ad6b31e..e6757200f1 100644 --- a/public/language/en-US/error.json +++ b/public/language/en-US/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/en-x-pirate/error.json b/public/language/en-x-pirate/error.json index cf9ad6b31e..e6757200f1 100644 --- a/public/language/en-x-pirate/error.json +++ b/public/language/en-x-pirate/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/es/error.json b/public/language/es/error.json index a95e781f1a..242383ea1f 100644 --- a/public/language/es/error.json +++ b/public/language/es/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/et/error.json b/public/language/et/error.json index 4484e2bae7..cb54921c35 100644 --- a/public/language/et/error.json +++ b/public/language/et/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/fa-IR/error.json b/public/language/fa-IR/error.json index 8d90235aa8..58ced215dd 100644 --- a/public/language/fa-IR/error.json +++ b/public/language/fa-IR/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/fi/error.json b/public/language/fi/error.json index 3ca068c950..50e10c40f4 100644 --- a/public/language/fi/error.json +++ b/public/language/fi/error.json @@ -249,6 +249,7 @@ "api.501": "Pyytämääsi polkua ei ole vielä toteutettu. Yritä huomenna uudelleen.", "api.503": "Pyytämääsi polku ei ole palvelinasetusten vuoksi tällä hetkellä käytettävissä.", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/fr/error.json b/public/language/fr/error.json index 53570b9996..575a3dd190 100644 --- a/public/language/fr/error.json +++ b/public/language/fr/error.json @@ -249,6 +249,7 @@ "api.501": "L'accès n'est pas encore fonctionnel, veuillez réessayer demain", "api.503": "L'accès n'est pas disponible actuellement en raison de la configuration du serveur", "api.reauth-required": "La ressource à laquelle vous tentez d'accéder nécessite une (ré-)authentification.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/gl/error.json b/public/language/gl/error.json index 8247cd635b..b94bdb5900 100644 --- a/public/language/gl/error.json +++ b/public/language/gl/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/he/error.json b/public/language/he/error.json index 382ff79a4c..2041b227e1 100644 --- a/public/language/he/error.json +++ b/public/language/he/error.json @@ -249,6 +249,7 @@ "api.501": "הנתיב אליו אתם מנסים לתקשר עדיין לא מיושם, אנא נסו שוב מחר", "api.503": "הנתיב אליו אתם מנסים לתקשר אינו זמין כעת עקב תצורת שרת", "api.reauth-required": "המשאב שאליו אתה מנסה לגשת דורש אימות (מחודש).", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "לא ניתן לפתור את מזהה הקלט, ככל הנראה מכיוון שהוא פגום.", "activitypub.get-failed": "לא ניתן לאחזר את המשאב שצוין.", "activitypub.pubKey-not-found": "לא ניתן לפתור מפתח ציבורי, ולכן לא ניתן לבצע אימות מטען.", diff --git a/public/language/hr/error.json b/public/language/hr/error.json index 98f2446343..44bf70e78d 100644 --- a/public/language/hr/error.json +++ b/public/language/hr/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/hu/error.json b/public/language/hu/error.json index 3e58c90d29..8916a02e0d 100644 --- a/public/language/hu/error.json +++ b/public/language/hu/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/hy/error.json b/public/language/hy/error.json index 10b84d7ddb..49a58a8222 100644 --- a/public/language/hy/error.json +++ b/public/language/hy/error.json @@ -249,6 +249,7 @@ "api.501": "Ուղեգիծը, որով փորձում եք զանգահարել, դեռ չի իրականացվել, խնդրում ենք վաղը նորից փորձեք", "api.503": "Երթուղին, որը փորձում եք զանգահարել, ներկայումս հասանելի չէ սերվերի կազմաձևման պատճառով", "api.reauth-required": "Ռեսուրսը, որին փորձում եք միանալ, պահանջում է (վերա) նույնականացում:", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/id/error.json b/public/language/id/error.json index 504a619cf8..48c708f31a 100644 --- a/public/language/id/error.json +++ b/public/language/id/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/it/error.json b/public/language/it/error.json index af76318421..d24d4b0cc3 100644 --- a/public/language/it/error.json +++ b/public/language/it/error.json @@ -249,6 +249,7 @@ "api.501": "Il percorso che stai cercando di chiamare non è ancora implementato, riprova domani", "api.503": "Il percorso che stai cercando di chiamare non è attualmente disponibile a causa di una configurazione del server", "api.reauth-required": "La risorsa a cui stai cercando di accedere richiede una (ri)autenticazione.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Impossibile risolvere l'ID di input, probabilmente perché non è valido.", "activitypub.get-failed": "Impossibile recuperare la risorsa specificata.", "activitypub.pubKey-not-found": "Impossibile risolvere la chiave pubblica, quindi la verifica del payload non può avvenire.", diff --git a/public/language/ja/error.json b/public/language/ja/error.json index 47158168ed..71927aed4c 100644 --- a/public/language/ja/error.json +++ b/public/language/ja/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/ko/error.json b/public/language/ko/error.json index 2eb1030c49..8f7c42ca71 100644 --- a/public/language/ko/error.json +++ b/public/language/ko/error.json @@ -249,6 +249,7 @@ "api.501": "호출하려는 경로가 현재 구현되지 않았습니다. 다음에 다시 시도하세요", "api.503": "현재 서버 구성으로 인해 호출하려는 경로를 사용할 수 없습니다", "api.reauth-required": "액세스하려는 리소스에는 (다시)인증이 필요합니다.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/lt/error.json b/public/language/lt/error.json index c725445c85..f9c57c0052 100644 --- a/public/language/lt/error.json +++ b/public/language/lt/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/lv/error.json b/public/language/lv/error.json index eaaf8c52c0..6c23706ed0 100644 --- a/public/language/lv/error.json +++ b/public/language/lv/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/ms/error.json b/public/language/ms/error.json index 2de34d1efe..a27c91df3e 100644 --- a/public/language/ms/error.json +++ b/public/language/ms/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/nb/error.json b/public/language/nb/error.json index 9892aec35f..e9d3700379 100644 --- a/public/language/nb/error.json +++ b/public/language/nb/error.json @@ -249,6 +249,7 @@ "api.501": "Ruten du prøver å kalle er ikke implementert enda. Prøv igjen i morgen", "api.503": "Ruten du prøver å kalle er for øyeblikket ikke tilgjengelig grunnet innstilling på serveren", "api.reauth-required": "Ressursen du prøver å få tilgang til krever (re-)autentisering.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/nl/error.json b/public/language/nl/error.json index 4fe2a41ab6..26e8cb387a 100644 --- a/public/language/nl/error.json +++ b/public/language/nl/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/nn-NO/error.json b/public/language/nn-NO/error.json index 82fa382c4f..bd14df3803 100644 --- a/public/language/nn-NO/error.json +++ b/public/language/nn-NO/error.json @@ -249,6 +249,7 @@ "api.501": "Ruta du prøver å kalle på er ikkje implementert enno, prøv igjen i morgon", "api.503": "Ruta du prøver å kalle på er for augneblinken ikkje tilgjengeleg grunna serverkonfigurasjon", "api.reauth-required": "Ressursen du prøver å nå krev (re-)autentisering.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/pl/error.json b/public/language/pl/error.json index ec9ebeef73..e62c08f1d0 100644 --- a/public/language/pl/error.json +++ b/public/language/pl/error.json @@ -249,6 +249,7 @@ "api.501": "Ścieżka jaką próbujesz wywołać, nie jest jeszcze zaimplementowana. Spróbuj ponownie jutro.", "api.503": "Ścieżka z którą próbujesz się połączyć, jest obecnie niedostępna z powodu konfiguracji serwera", "api.reauth-required": "Zasób, do którego próbujesz uzyskać dostęp, wymaga (być może ponownego) uwierzytelnienia.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Nie można przetworzyć id na wejściu, czyli pewnie jest zdeformowane.", "activitypub.get-failed": "Nie udało się pobrać zadanego zasobu.", "activitypub.pubKey-not-found": "Nie udało się uzyskać klucza publicznego, więc nie może zajść weryfikacja zawartości.", diff --git a/public/language/pt-BR/error.json b/public/language/pt-BR/error.json index 316c851ecf..e429c6f80c 100644 --- a/public/language/pt-BR/error.json +++ b/public/language/pt-BR/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/pt-PT/error.json b/public/language/pt-PT/error.json index ad2e498278..227c67ba55 100644 --- a/public/language/pt-PT/error.json +++ b/public/language/pt-PT/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/ro/error.json b/public/language/ro/error.json index 9eae4def74..627a24414b 100644 --- a/public/language/ro/error.json +++ b/public/language/ro/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/ru/error.json b/public/language/ru/error.json index 1816521a2d..404e44e0a8 100644 --- a/public/language/ru/error.json +++ b/public/language/ru/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "Ресурс к которому вы пытаетесь получить доступ требует авторизации.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/rw/error.json b/public/language/rw/error.json index 53ba567d7f..05d3442175 100644 --- a/public/language/rw/error.json +++ b/public/language/rw/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sc/error.json b/public/language/sc/error.json index cf9ad6b31e..e6757200f1 100644 --- a/public/language/sc/error.json +++ b/public/language/sc/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sk/error.json b/public/language/sk/error.json index 19d50aa3ca..941f5feb59 100644 --- a/public/language/sk/error.json +++ b/public/language/sk/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sl/error.json b/public/language/sl/error.json index f34e092f55..d3edb0a4a9 100644 --- a/public/language/sl/error.json +++ b/public/language/sl/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sq-AL/error.json b/public/language/sq-AL/error.json index ea0eedd55b..2a57750eba 100644 --- a/public/language/sq-AL/error.json +++ b/public/language/sq-AL/error.json @@ -249,6 +249,7 @@ "api.501": "Itinerari që kërkoni nuk është zbatuar ende, ju lutemi provoni sërish nesër", "api.503": "Itinerari që kërkoni nuk është aktualisht i disponueshëm për shkak të një konfigurimi të serverit", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sr/error.json b/public/language/sr/error.json index a67caebc12..1252073081 100644 --- a/public/language/sr/error.json +++ b/public/language/sr/error.json @@ -249,6 +249,7 @@ "api.501": "Рута коју покушавате да позовете још увек није примењена, покушајте поново сутра", "api.503": "Рута коју покушавате да позовете тренутно није доступна због конфигурације сервера", "api.reauth-required": "Ресурс којем покушавате да приступите захтева (поновну) аутентификацију.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/sv/error.json b/public/language/sv/error.json index 851a9e7ced..2eff186979 100644 --- a/public/language/sv/error.json +++ b/public/language/sv/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/th/error.json b/public/language/th/error.json index 6e041aff37..c24d6b5dac 100644 --- a/public/language/th/error.json +++ b/public/language/th/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/tr/error.json b/public/language/tr/error.json index 488672fb61..d2fce121fd 100644 --- a/public/language/tr/error.json +++ b/public/language/tr/error.json @@ -249,6 +249,7 @@ "api.501": "Aramaya çalıştığınız rota henüz uygulanmadı, lütfen yarın tekrar deneyin", "api.503": "Aramaya çalıştığınız rota sunucu yapılandırması nedeniyle şu anda kullanılamıyor", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/uk/error.json b/public/language/uk/error.json index 4991371123..fc415db9f3 100644 --- a/public/language/uk/error.json +++ b/public/language/uk/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.", diff --git a/public/language/vi/error.json b/public/language/vi/error.json index d46e7cb30b..3638e8b12b 100644 --- a/public/language/vi/error.json +++ b/public/language/vi/error.json @@ -249,6 +249,7 @@ "api.501": "Định tuyến bạn đang cố gắng gọi chưa được triển khai, vui lòng thử lại vào ngày mai", "api.503": "Định tuyến bạn đang cố gọi hiện không khả dụng do cấu hình máy chủ", "api.reauth-required": "Tài nguyên bạn đang cố truy cập yêu cầu xác thực (lại).", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Không thể giải quyết id đầu vào, có thể vì nó không đúng định dạng.", "activitypub.get-failed": "Không thể truy xuất tài nguyên được chỉ định.", "activitypub.pubKey-not-found": "Không thể giải quyết khóa công khai, do đó việc xác minh payload không thể diễn ra.", diff --git a/public/language/zh-CN/error.json b/public/language/zh-CN/error.json index 45aeb91029..43b8c7fbdc 100644 --- a/public/language/zh-CN/error.json +++ b/public/language/zh-CN/error.json @@ -249,6 +249,7 @@ "api.501": "您试图调用的路由还没被实现,请明天重试", "api.503": "您试图调用的路由因为服务器配置而目前不可用", "api.reauth-required": "您试图访问的资源需要(重新)进行身份验证。", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "无法解析输入 id,可能是畸形输入。", "activitypub.get-failed": "无法检索指定资源。", "activitypub.pubKey-not-found": "无法解析公钥,因此无法进行有效载荷验证。", diff --git a/public/language/zh-TW/error.json b/public/language/zh-TW/error.json index 7c1292ece4..192ff59029 100644 --- a/public/language/zh-TW/error.json +++ b/public/language/zh-TW/error.json @@ -249,6 +249,7 @@ "api.501": "The route you are trying to call is not implemented yet, please try again tomorrow", "api.503": "The route you are trying to call is not currently available due to a server configuration", "api.reauth-required": "The resource you are trying to access requires (re-)authentication.", + "activitypub.not-enabled": "Federation is not enabled on this server", "activitypub.invalid-id": "Unable to resolve the input id, likely as it is malformed.", "activitypub.get-failed": "Unable to retrieve the specified resource.", "activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.",