 class Followable extends jraphical.Module
-  
+
   {dash} = bongo
-  
+
   @set
     schema          :
       counts        :

        ids = (rel.sourceId for rel in docs)
        JAccount.all _id: $in: ids, (err, accounts)->
          callback err, accounts
  
  fetchFollowers: (query, page, callback)->
    _.extend query,
      targetId  : @getId()

        ids = (rel.sourceId for rel in docs)
        JTag.all _id: $in: ids, (err, accounts)->
          callback err, accounts

  updateFollowingCount: ()->
    jraphical.Relationship.count targetId:@_id, as:'follower', (error, count)=>
      bongo.Model::update.call @, $set: 'counts.following': count, (err)->
        throw err if err
      @emit 'FollowCountChanged'
        followerCount   : @getAt('counts.followers')
        followingCount  : @getAt('counts.following')
