     @someData {snapshot:$exists:1}, {snapshot:1}, {limit:20}, (err, cursor)->
       cursor.toArray (err, arr)->
         callback null, 'feed:'+(item.snapshot for item in arr).join '\n'
-
-  defaultFacets = [
-      'CStatusActivity'
-      'CCodeSnipActivity'
-      'CFollowerBucketActivity'
-      'CNewMemberBucketActivity'
-      'CDiscussionActivity'
-      'CTutorialActivity'
-      'CInstallerBucketActivity'
-      'CBlogPostActivity'
-    ]
-
-  @fetchCount = permit 'read activity',
-    success:(client, callback)-> @count callback
-
-  @fetchFacets = permit 'read activity',
-    success:(client, options, callback)->
-      {to, limit, facets, lowQuality, originId, sort, skip} = options
-      lowQuality  ?= yes
-      facets      ?= defaultFacets
-      to          ?= Date.now()
-
-      selector =
-        type         : { $in : facets }
-        createdAt    : { $lt : new Date to }
-        group        : client.groupName ? 'koding'
-
-      selector.originId = originId if originId
-      selector.isLowQuality = $ne : yes unless lowQuality
-
-      options =
-        limit : limit ? 20
-        sort  : sort  or createdAt : -1
-        skip  : skip  ? 0
-
-      @some selector, options, (err, activities)->
-        if err then callback err
-        else
-
-          # When the snapshot already contains &quot;, those will be
-          # decoded once the client receives them (along with the " that
-          # are encoded for the server-client transmission). That's why
-          # they are converted into \" here.              02/28/13 Arvid
-
-          for own index,activity of activities
-            if activity.snapshot
-              activities[index].snapshot = activities[index].snapshot.replace(/(&quot;)/g, '\\"')
-
-          callback null, activities
-
-  @getCurrentGroup: (client, callback)->
-    groupName = client.context.group or "koding"
-    JGroup = require '../group'
-    JGroup.one slug : groupName, (err, group)=>
-      if err then return callback err
-      unless group then return callback {error: "Group not found"}
-
-      # this is not a security hole
-      # everybody can read koding activity feed
-      return callback null, group if groupName is "koding"
-
-      # if group is not koding check for security
-      {delegate} = client.connection
-      return callback {error: "Request not valid"} unless delegate
-      group.canReadActivity client, (err, res)->
-        if err then return callback {error: "Not allowed to open this group"}
-        else callback null, group
-
-  # this is used for activities on profile page
-  @fetchUsersActivityFeed: secure (client, options, callback)->
-    {Activity} = require "../graph"
-    options.client = client
-
-    Activity.fetchUsersActivityFeed options, callback
-
-  @fetchFolloweeContents: secure (client, options, callback)->
-    {Activity} = require "../graph"
-    {facets, to, limit} = options
-    requestOptions =
-      userId : client.connection.delegate.getId()
-      limit : 5 #limit #bandage for now
-      withExempt: options.withExempt
-      facet : facets
-      to : to
-      client : client
-
-    Activity.fetchFolloweeContents requestOptions, callback
 
   markAsRead: secure ({connection:{delegate}}, callback)->
     @update

          (signature Function)
          (signature Object, Function)
        ]
        captureSortCounts:
          (signature Function)
        fetchFacets:
          (signature Object, Function)
        checkIfLikedBefore:
          (signature [String], Function)
        count: [

  @on 'PostIsDeleted',     notifyCache.bind this, 'PostIsDeleted'
  @on 'BucketIsUpdated',   notifyCache.bind this, 'BucketIsUpdated'
  @on 'UserMarkedAsTroll', notifyCache.bind this, 'UserMarkedAsTroll'
