       callback sanitizedCache
 
 
-  FETCHING_ATTEMPT = 0
   fetchPublicActivities:(options = {})->
     {CStatusActivity} = KD.remote.api
 

        group      :
          slug     : groupObj?.slug or "koding"
          id       : groupObj.getId()
        limit      : 50
        facets     : @getActivityFilter()
        withExempt : no


      if prefetchedActivity and prefetchedActivity.activities and ('activities.main' not in USEDFEEDS)
        log "exhausting feed:", "activity.main"

        USEDFEEDS.push 'activities.main'
        return @prepareCacheForListing KD.prefetchedFeeds["activity.main"]

    CStatusActivity.fetchPublicActivityFeed options, (err, cache)=>
      return @emit "activitiesCouldntBeFetched", err  if err
