mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
check sortBy
This commit is contained in:
@@ -182,7 +182,7 @@ function getMatchedPosts(pids, data, callback) {
|
||||
|
||||
async.parallel({
|
||||
teasers: function (next) {
|
||||
if (data.sortBy.startsWith('teaser')) {
|
||||
if (data.sortBy && data.sortBy.startsWith('teaser')) {
|
||||
var teaserKeys = topicsData.map(function (topic) {
|
||||
return 'post:' + topic.teaserPid;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user