mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 06:52:59 +01:00
Merge commit '67c8bd99169fe2d4b23c65b8ce262026eb615a4d' into v3.x
This commit is contained in:
56
CHANGELOG.md
56
CHANGELOG.md
@@ -1,3 +1,59 @@
|
||||
#### v3.6.4 (2024-01-24)
|
||||
|
||||
##### Chores
|
||||
|
||||
* incrementing version number - v3.6.3 (fc7d2bfd)
|
||||
* update changelog for v3.6.3 (92ffc57c)
|
||||
* incrementing version number - v3.6.2 (0f577a57)
|
||||
* incrementing version number - v3.6.1 (f1a69468)
|
||||
* incrementing version number - v3.6.0 (4cdf85f8)
|
||||
* incrementing version number - v3.5.3 (ed0e8783)
|
||||
* incrementing version number - v3.5.2 (52fbb2da)
|
||||
* incrementing version number - v3.5.1 (4c543488)
|
||||
* incrementing version number - v3.5.0 (d06fb4f0)
|
||||
* incrementing version number - v3.4.3 (5c984250)
|
||||
* incrementing version number - v3.4.2 (3f0dac38)
|
||||
* incrementing version number - v3.4.1 (01e69574)
|
||||
* incrementing version number - v3.4.0 (fd9247c5)
|
||||
* incrementing version number - v3.3.9 (5805e770)
|
||||
* incrementing version number - v3.3.8 (a5603565)
|
||||
* incrementing version number - v3.3.7 (b26f1744)
|
||||
* incrementing version number - v3.3.6 (7fb38792)
|
||||
* incrementing version number - v3.3.4 (a67f84ea)
|
||||
* incrementing version number - v3.3.3 (f94d239b)
|
||||
* incrementing version number - v3.3.2 (ec9dac97)
|
||||
* incrementing version number - v3.3.1 (151cc68f)
|
||||
* incrementing version number - v3.3.0 (fc1ad70f)
|
||||
* incrementing version number - v3.2.3 (b06d3e63)
|
||||
* incrementing version number - v3.2.2 (758ecfcd)
|
||||
* incrementing version number - v3.2.1 (20145074)
|
||||
* incrementing version number - v3.2.0 (9ecac38e)
|
||||
* incrementing version number - v3.1.7 (0b4e81ab)
|
||||
* incrementing version number - v3.1.6 (b3a3b130)
|
||||
* incrementing version number - v3.1.5 (ec19343a)
|
||||
* incrementing version number - v3.1.4 (2452783c)
|
||||
* incrementing version number - v3.1.3 (3b4e9d3f)
|
||||
* incrementing version number - v3.1.2 (40fa3489)
|
||||
* incrementing version number - v3.1.1 (40250733)
|
||||
* incrementing version number - v3.1.0 (0cb386bd)
|
||||
* incrementing version number - v3.0.1 (26f6ea49)
|
||||
* incrementing version number - v3.0.0 (224e08cd)
|
||||
|
||||
##### New Features
|
||||
|
||||
* add success hook to quick reply (cb21f28b)
|
||||
|
||||
##### Bug Fixes
|
||||
|
||||
* if there is no bookmarkThreshold dont init unread indicator (cf40d681)
|
||||
* remove leftover code from 2.x, closes #12301 (d5f445f1)
|
||||
* copy single line code blocks, closes #12297 (06269cdf)
|
||||
* validate plugin id in toggleActive (76f3efff)
|
||||
|
||||
##### Tests
|
||||
|
||||
* add plugin id tests (e8befbcc)
|
||||
|
||||
#### v3.6.3 (2024-01-12)
|
||||
|
||||
##### Chores
|
||||
|
||||
@@ -195,7 +195,7 @@ define('admin/extend/plugins', [
|
||||
let html = '';
|
||||
activePlugins.forEach(function (plugin) {
|
||||
html += `
|
||||
<li class="d-flex justify-content-between gap-1 pointer border-bottom pb-2">
|
||||
<li class="d-flex justify-content-between gap-1 pointer border-bottom pb-2" data-plugin="${plugin}">
|
||||
${plugin}
|
||||
<div class="d-flex gap-1">
|
||||
<div class="btn-ghost-sm move-up">
|
||||
@@ -233,7 +233,7 @@ define('admin/extend/plugins', [
|
||||
const plugins = $('#order-active-plugins-modal .plugin-list').children();
|
||||
const data = [];
|
||||
plugins.each(function (index, el) {
|
||||
data.push({ name: $(el).text(), order: index });
|
||||
data.push({ name: $(el).attr('data-plugin'), order: index });
|
||||
});
|
||||
|
||||
socket.emit('admin.plugins.orderActivePlugins', data, function (err) {
|
||||
|
||||
@@ -5,6 +5,7 @@ const nconf = require('nconf');
|
||||
const plugins = require('../../plugins');
|
||||
const events = require('../../events');
|
||||
const db = require('../../database');
|
||||
const { pluginNamePattern } = require('../../constants');
|
||||
|
||||
const Plugins = module.exports;
|
||||
|
||||
@@ -41,7 +42,14 @@ Plugins.orderActivePlugins = async function (socket, data) {
|
||||
throw new Error('[[error:plugins-set-in-configuration]]');
|
||||
}
|
||||
data = data.filter(plugin => plugin && plugin.name);
|
||||
await Promise.all(data.map(plugin => db.sortedSetAdd('plugins:active', plugin.order || 0, plugin.name)));
|
||||
|
||||
data.forEach((plugin) => {
|
||||
if (!pluginNamePattern.test(plugin.name)) {
|
||||
throw new Error('[[error:invalid-plugin-id]]');
|
||||
}
|
||||
});
|
||||
|
||||
await db.sortedSetAdd('plugins:active', data.map(p => p.order || 0), data.map(p => p.name));
|
||||
};
|
||||
|
||||
Plugins.upgrade = async function (socket, data) {
|
||||
|
||||
Reference in New Issue
Block a user