mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 09:17:01 +02:00
fix: avoid db calls in upgrade scripts, just add blocklists to db, no refresh
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const activitypub = require('../../activitypub');
|
||||
const db = require('../../database');
|
||||
|
||||
module.exports = {
|
||||
name: 'Subscribe to IFTAS DNI and AUD denylists',
|
||||
timestamp: Date.UTC(2026, 2, 23),
|
||||
method: async () => {
|
||||
await Promise.all([
|
||||
activitypub.blocklists.add('https://about.iftas.org/wp-content/uploads/2025/10/iftas-dni-latest.csv'),
|
||||
activitypub.blocklists.add('https://about.iftas.org/wp-content/uploads/2025/10/iftas-abandoned-unmanaged-latest.csv'),
|
||||
await db.sortedSetAdd('blocklists', [Date.now(), Date.now()], [
|
||||
'https://about.iftas.org/wp-content/uploads/2025/10/iftas-dni-latest.csv',
|
||||
'https://about.iftas.org/wp-content/uploads/2025/10/iftas-abandoned-unmanaged-latest.csv',
|
||||
]);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user