mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
added mainPid to topic restore/edit hooks
This commit is contained in:
@@ -68,6 +68,7 @@ var winston = require('winston'),
|
|||||||
|
|
||||||
var topicData = {
|
var topicData = {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
|
mainPid: pid,
|
||||||
title: title,
|
title: title,
|
||||||
slug: tid + '/' + utils.slugify(title)
|
slug: tid + '/' + utils.slugify(title)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ var winston = require('winston'),
|
|||||||
};
|
};
|
||||||
|
|
||||||
function toggleDelete(tid, uid, isDelete, callback) {
|
function toggleDelete(tid, uid, isDelete, callback) {
|
||||||
topics.getTopicFields(tid, ['tid', 'cid', 'deleted', 'title'], function(err, topicData) {
|
topics.getTopicFields(tid, ['tid', 'cid', 'deleted', 'title', 'mainPid'], function(err, topicData) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user