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