mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
first pass #899
This commit is contained in:
@@ -11,7 +11,8 @@ var winston = require('winston'),
|
||||
posts = require('./posts'),
|
||||
meta = require('./meta'),
|
||||
websockets = require('./socket.io'),
|
||||
events = require('./events');
|
||||
events = require('./events'),
|
||||
Plugins = require('./plugins');
|
||||
|
||||
|
||||
(function(ThreadTools) {
|
||||
@@ -76,7 +77,7 @@ var winston = require('winston'),
|
||||
|
||||
ThreadTools.lock(tid);
|
||||
|
||||
db.searchRemove('topic', tid);
|
||||
Plugins.fireHook('action:topic.delete', tid);
|
||||
|
||||
events.logTopicDelete(uid, tid);
|
||||
|
||||
@@ -120,9 +121,7 @@ var winston = require('winston'),
|
||||
tid: tid
|
||||
});
|
||||
|
||||
topics.getTopicField(tid, 'title', function(err, title) {
|
||||
db.searchIndex('topic', title, tid);
|
||||
});
|
||||
Plugins.fireHook('action:topic.restore', tid);
|
||||
|
||||
callback(null, {
|
||||
tid:tid
|
||||
|
||||
Reference in New Issue
Block a user