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

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

        if FETCHING_ATTEMPT > 0 then USEDFEEDS.push 'activities.main'

        activity = $.extend {}, KD.prefetchedFeeds["activity.main"]
        overview = activity.overview
        firstCount = 25
        secondCount = 50

        switch ++FETCHING_ATTEMPT
          when 1
            firstCount = -24
            secondCount = 50
          when 2
            firstCount = -50
            secondCount = 25

        overview = overview[firstCount..secondCount]
        activity.overview = overview
        return @prepareCacheForListing activity

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

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

