   #   * Client's followers who are online
   #   * Active users in the last day
   #   * Random users
-  @fetchUsers = secure (client, options={}, callback)->
+  @fetchUsers = secure (client, options, callback)->
+    [callback, options] = [options, callback]  unless callback
     options.client     = client
     options.fallbackFn = @fetchRandomUsers
 

JTag           = require "./tag"
Cache          = require "../cache/main"

{secure, daisy, Base} = Bongo

module.exports = class ActiveItems extends Base
  @share()

  @set
    sharedMethods :
      static      : ["fetchTopics", "fetchUsers"]

  nameMapping =
    user    :

  #
  # Popularity is determined by number of entries in 'relationships'
  # collection that match the criteria passed to it.
  @fetchItems = (options, callback) ->
    [callback, options] = [options, callback]  unless callback
    {name, nin} = options
    mapping     = nameMapping[name]
    {klass, as} = mapping
