mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
deleting and restoring posts and topics now update the corresponding RSS feeds
fixed #257
This commit is contained in:
@@ -11,7 +11,8 @@ var RDB = require('./redis.js'),
|
||||
postSearch = reds.createSearch('nodebbpostsearch'),
|
||||
topicSearch = reds.createSearch('nodebbtopicsearch'),
|
||||
winston = require('winston'),
|
||||
meta = require('./meta.js');
|
||||
meta = require('./meta.js'),
|
||||
Feed = require('./feed');
|
||||
|
||||
(function(PostTools) {
|
||||
PostTools.isMain = function(pid, tid, callback) {
|
||||
@@ -138,6 +139,8 @@ var RDB = require('./redis.js'),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Feed.updateTopic(postData.tid);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -174,6 +177,8 @@ var RDB = require('./redis.js'),
|
||||
}
|
||||
});
|
||||
|
||||
Feed.updateTopic(postData.tid);
|
||||
|
||||
postSearch.index(postData.content, pid);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user