
/**
 * Module dependencies.
 */

var debug = require('debug')('wpcom:like');

/**
 * Follow methods
 *
 * @param {String} site_id site id
 * @param {WPCOM} wpcom
 * @api public
 */

function Follow(site_id, wpcom){
  if (!site_id) {
    throw new Error('`site id` is not correctly defined');
  }

  if (!(this instanceof Follow)) return new Follow(site_id, wpcom);

  this.wpcom = wpcom;
  this._site_id = site_id;
};

/**
 * :FOLLOW:
 * List a site's followers
 * in reverse-chronological
 * order
 *
 */
Follow.prototype.followers = function(fn) {
  this.wpcom.sendRequest('/sites/' + this._site_id + '/follows/', null, null, fn);
};

/**
 * :FOLLOW:
 * Follow the site
 *
 */
Follow.prototype.follow = function(fn) {
  this.wpcom.sendRequest({method: 'POST', path: '/sites/' + this._site_id + '/follows/new'}, null, null, fn);
};

/**
 * :FOLLOW:
 * Unfollow the site
 *
 */
Follow.prototype.unfollow = function(fn) {
  this.wpcom.sendRequest({method: 'POST', path: '/sites/' + this._site_id + '/follows/mine/delete'}, null, null, fn);
};

/**
 * :FOLLOW:
 * Get the follow status for current 
 * user on current blog site
 *
 */
Follow.prototype.is_following = function(fn) {
  this.wpcom.sendRequest('/sites/' + this._site_id + '/follows/mine', null, null, fn);
};

module.exports = Follow;
@@ -410,17 +410,16 @@
 te_id;%0A%7D
-;
 %0A%0A/**%0A *
@@ -545,39 +545,27 @@
 fn) %7B%0A  
-this.wpcom.sendRequest(
+var path = 
 '/sites/
@@ -595,16 +595,46 @@
 ollows/'
+%0A  this.wpcom.sendRequest(path
 , null, 
@@ -737,53 +737,18 @@
 %7B%0A  
-this.wpcom.sendRequest(%7Bmethod: 'POST',
+var
  path
-:
+ =
  '/s
@@ -786,16 +786,70 @@
 ows/new'
+;%0A  this.wpcom.sendRequest(%7Bmethod: 'POST', path: path
 %7D, null,
@@ -957,53 +957,18 @@
 %7B%0A  
-this.wpcom.sendRequest(%7Bmethod: 'POST',
+var
  path
-:
+ =
  '/s
@@ -1014,16 +1014,70 @@
 /delete'
+;%0A  this.wpcom.sendRequest(%7Bmethod: 'POST', path: path
 %7D, null,
@@ -1231,39 +1231,27 @@
 fn) %7B%0A  
-this.wpcom.sendRequest(
+var path = 
 '/sites/
@@ -1285,16 +1285,47 @@
 ws/mine'
+;%0A  this.wpcom.sendRequest(path
 , null, 

Update code formatting