diff --git a/app/mailer/notify.js b/app/mailer/notify.js deleted file mode 100755 index 6d66a3b6b8..0000000000 --- a/app/mailer/notify.js +++ /dev/null @@ -1,58 +0,0 @@ - -/** - * Module dependencies. - */ - -var mongoose = require('mongoose') - , Notifier = require('notifier') - , env = process.env.NODE_ENV || 'development' - , config = require('../../config/config')[env] - -/** - * Notification methods - */ - -var Notify = { - - /** - * Comment notification - * - * @param {Object} options - * @param {Function} cb - * @api public - */ - - comment: function (options, cb) { - var article = options.article - var author = article.user - var user = options.currentUser - var notifier = new Notifier(config.notifier) - - var obj = { - to: author.email, - from: 'your@product.com', - subject: user.name + ' added a comment on your article ' + article.title, - alert: user.name + ' says: "' + options.comment, - locals: { - to: author.name, - from: user.name, - body: options.comment, - article: article.name - } - } - - // for apple push notifications - /*notifier.use({ - APN: true - parseChannels: ['USER_' + author._id.toString()] - })*/ - - notifier.send('comment', obj, cb) - } -} - -/** - * Expose - */ - -module.exports = Notify diff --git a/app/mailer/templates/comment.jade b/app/mailer/templates/comment.jade deleted file mode 100755 index 1b719838ce..0000000000 --- a/app/mailer/templates/comment.jade +++ /dev/null @@ -1,5 +0,0 @@ -p Hello #{to} - -p #{from} has added a comment "#{body}" on your article #{article} - -p Cheers diff --git a/config/imager.js b/config/imager.js deleted file mode 100755 index 69ce2d4f28..0000000000 --- a/config/imager.js +++ /dev/null @@ -1,40 +0,0 @@ -module.exports = { - variants: { - article: { - resize: { - detail: "x440" - }, - crop: { - thumb: "16000@" - }, - resizeAndCrop: { - mini: {resize: "63504@", crop: "252x210"} - } - }, - - gallery: { - crop: { - thumb: "100x100" - } - } - }, - - storage: { - Rackspace: { - auth: { - username: "USERNAME", - apiKey: "API_KEY", - host: "lon.auth.api.rackspacecloud.com" - }, - container: "CONTAINER_NAME" - }, - S3: { - key: 'API_KEY', - secret: 'SECRET', - bucket: 'BUCKET_NAME', - region: 'REGION' - } - }, - - debug: true -} diff --git a/package.json b/package.json index 7796a25ead..2267f5badc 100755 --- a/package.json +++ b/package.json @@ -24,8 +24,6 @@ , "passport-twitter": "latest" , "passport-github": "latest" , "passport-google-oauth": "latest" - , "imager": "latest" - , "notifier": "latest" , "underscore": "latest" , "gzippo": "latest" , "async": "latest"