Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove filter priorities (use default hooker's)
  • Loading branch information
ixti committed Mar 29, 2012
1 parent 927a9f9 commit b67a2bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/forum/index.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function (params, next) {
}; };




nodeca.filters.before('@', 100, function (params, next) { nodeca.filters.before('@', function (params, next) {
var data = this.response.data; var data = this.response.data;


nodeca.models.forum.section.find({}, function (err, sections) { nodeca.models.forum.section.find({}, function (err, sections) {
Expand Down
4 changes: 2 additions & 2 deletions server/forum/section/show.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function (params, next) {
}; };




nodeca.filters.before('@', 100, function (params, next) { nodeca.filters.before('@', function (params, next) {
var data = this.response.data; var data = this.response.data;


nodeca.models.forum.section.findOne({id: params.id}, function (err, section) { nodeca.models.forum.section.findOne({id: params.id}, function (err, section) {
Expand All @@ -15,7 +15,7 @@ nodeca.filters.before('@', 100, function (params, next) {
}); });
}); });


nodeca.filters.before('@', 100, function (params, next) { nodeca.filters.before('@', function (params, next) {
var data = this.response.data; var data = this.response.data;


nodeca.models.forum.thread.find({forum_id: params.id}, function (err, threads) { nodeca.models.forum.thread.find({forum_id: params.id}, function (err, threads) {
Expand Down
4 changes: 2 additions & 2 deletions server/forum/thread/show.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function (params, next) {
}; };




nodeca.filters.before('@', 100, function (params, next) { nodeca.filters.before('@', function (params, next) {
var data = this.response.data; var data = this.response.data;


nodeca.models.forum.thread.findOne({id: params.id}, function (err, thread) { nodeca.models.forum.thread.findOne({id: params.id}, function (err, thread) {
Expand All @@ -16,7 +16,7 @@ nodeca.filters.before('@', 100, function (params, next) {
}); });




nodeca.filters.before('@', 100, function (params, next) { nodeca.filters.before('@', function (params, next) {
var data = this.response.data; var data = this.response.data;


nodeca.models.forum.post.find({thread: data.thread._id}, function (err, posts) { nodeca.models.forum.post.find({thread: data.thread._id}, function (err, posts) {
Expand Down

0 comments on commit b67a2bc

Please sign in to comment.