mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix: update version removal comments to 1.17 for some features
This commit is contained in:
@@ -25,7 +25,7 @@ require('./usage')(Plugins);
|
|||||||
Plugins.data = require('./data');
|
Plugins.data = require('./data');
|
||||||
Plugins.hooks = require('./hooks');
|
Plugins.hooks = require('./hooks');
|
||||||
|
|
||||||
// Backwards compatibility for hooks, remove in v1.16.0
|
// Backwards compatibility for hooks, remove in v1.17.0
|
||||||
Plugins.registerHook = Plugins.hooks.register;
|
Plugins.registerHook = Plugins.hooks.register;
|
||||||
Plugins.unregisterHook = Plugins.hooks.unregister;
|
Plugins.unregisterHook = Plugins.hooks.unregister;
|
||||||
Plugins.fireHook = Plugins.hooks.fire;
|
Plugins.fireHook = Plugins.hooks.fire;
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ Topics.getTopicsByTids = async function (tids, options) {
|
|||||||
return hookResult.topics;
|
return hookResult.topics;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Note: Backwards compatibility with old thumb logic, remove in v1.16.0
|
// Note: Backwards compatibility with old thumb logic, remove in v1.17.0
|
||||||
function restoreThumbValue(topic) {
|
function restoreThumbValue(topic) {
|
||||||
if (topic.thumb && !topic.thumbs.length) {
|
if (topic.thumb && !topic.thumbs.length) {
|
||||||
topic.thumbs = [{
|
topic.thumbs = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user