mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
linting
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
var async = require('async'),
|
var async = require('async'),
|
||||||
nconf = require('nconf'),
|
nconf = require('nconf'),
|
||||||
|
|
||||||
@@ -278,7 +280,7 @@ SocketPosts.flag = function(socket, pid, callback) {
|
|||||||
posts.getPostField(pid, 'tid', next);
|
posts.getPostField(pid, 'tid', next);
|
||||||
},
|
},
|
||||||
function(tid, next) {
|
function(tid, next) {
|
||||||
topics.getTopicField(tid, 'slug', next)
|
topics.getTopicField(tid, 'slug', next);
|
||||||
},
|
},
|
||||||
function(topicSlug, next) {
|
function(topicSlug, next) {
|
||||||
path = nconf.get('relative_path') + '/topic/' + topicSlug + '#' + pid;
|
path = nconf.get('relative_path') + '/topic/' + topicSlug + '#' + pid;
|
||||||
@@ -297,7 +299,7 @@ SocketPosts.flag = function(socket, pid, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
], callback);
|
], callback);
|
||||||
}
|
};
|
||||||
|
|
||||||
SocketPosts.loadMoreFavourites = function(socket, data, callback) {
|
SocketPosts.loadMoreFavourites = function(socket, data, callback) {
|
||||||
if(!data || !data.after) {
|
if(!data || !data.after) {
|
||||||
|
|||||||
Reference in New Issue
Block a user