mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
ESlint object-curly-spacing
This commit is contained in:
@@ -67,7 +67,7 @@ var social = require('./social');
|
||||
Topics.getTopics(tids, uid, next);
|
||||
},
|
||||
function (topics, next) {
|
||||
next(null, {topics: topics, nextStart: stop + 1});
|
||||
next(null, { topics: topics, nextStart: stop + 1 });
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
@@ -161,7 +161,7 @@ var social = require('./social');
|
||||
return topic && topic.category && !topic.category.disabled;
|
||||
});
|
||||
|
||||
plugins.fireHook('filter:topics.get', {topics: topics, uid: uid}, next);
|
||||
plugins.fireHook('filter:topics.get', { topics: topics, uid: uid }, next);
|
||||
},
|
||||
function (data, next) {
|
||||
next(null, data.topics);
|
||||
@@ -175,7 +175,7 @@ var social = require('./social');
|
||||
async.parallel({
|
||||
posts: async.apply(getMainPostAndReplies, topicData, set, uid, start, stop, reverse),
|
||||
category: async.apply(Topics.getCategoryData, topicData.tid),
|
||||
threadTools: async.apply(plugins.fireHook, 'filter:topic.thread_tools', {topic: topicData, uid: uid, tools: []}),
|
||||
threadTools: async.apply(plugins.fireHook, 'filter:topic.thread_tools', { topic: topicData, uid: uid, tools: [] }),
|
||||
isFollowing: async.apply(Topics.isFollowing, [topicData.tid], uid),
|
||||
isIgnoring: async.apply(Topics.isIgnoring, [topicData.tid], uid),
|
||||
bookmark: async.apply(Topics.getUserBookmark, topicData.tid, uid),
|
||||
@@ -211,7 +211,7 @@ var social = require('./social');
|
||||
|
||||
topicData.icons = [];
|
||||
|
||||
plugins.fireHook('filter:topic.get', {topic: topicData, uid: uid}, next);
|
||||
plugins.fireHook('filter:topic.get', { topic: topicData, uid: uid }, next);
|
||||
},
|
||||
function (data, next) {
|
||||
next(null, data.topic);
|
||||
|
||||
Reference in New Issue
Block a user