mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
remove !
This commit is contained in:
parent
71b5443f8c
commit
61159eaa42
@ -82,12 +82,11 @@ exports.index = function (req, res, next) {
|
||||
}
|
||||
}));
|
||||
|
||||
//get author's relationship
|
||||
if (!req.session.user || !req.session.user._id) {
|
||||
ep.emit('get_relation', null);
|
||||
} else {
|
||||
|
||||
// get author's relationship
|
||||
if (req.session.user && req.session.user._id) {
|
||||
Relation.getRelation(req.session.user._id, topic.author_id, ep.done('get_relation'));
|
||||
} else {
|
||||
ep.emit('get_relation', null);
|
||||
}
|
||||
|
||||
// get author other topics
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user