mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: upgrade script to re-assert all known actors to save URL into hash, and bump mentions
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
"nodebb-plugin-emoji": "5.1.13",
|
||||
"nodebb-plugin-emoji-android": "4.0.0",
|
||||
"nodebb-plugin-markdown": "13.0.0-pre.3",
|
||||
"nodebb-plugin-mentions": "4.4.3",
|
||||
"nodebb-plugin-mentions": "4.4.4",
|
||||
"nodebb-plugin-ntfy": "1.7.4",
|
||||
"nodebb-plugin-spam-be-gone": "2.2.1",
|
||||
"nodebb-rewards-essentials": "1.0.0",
|
||||
|
||||
18
src/upgrades/4.0.0/remote_user_urls.js
Normal file
18
src/upgrades/4.0.0/remote_user_urls.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// REMOVE THIS PRIOR TO 4.0 ALPHA
|
||||
|
||||
'use strict';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const db = require('../../database');
|
||||
const activitypub = require('../../activitypub');
|
||||
|
||||
module.exports = {
|
||||
name: 'Re-assert all existing actors to save URL into hash',
|
||||
timestamp: Date.UTC(2024, 3, 4),
|
||||
method: async () => {
|
||||
const batch = require('../../batch');
|
||||
const { progress } = this;
|
||||
|
||||
await batch.processSortedSet('usersRemote:lastCrawled', async ids => await activitypub.actors.assert(ids, { update: true }), { progress });
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user