     if page > 0
       skip = (page - 1) * itemsPerPage
       
-    fetchOptions =
-      targetId   : targetId
-      limit      : itemsPerPage
-      skip       : skip
-      replyLimit : 25
+    fetchOptions = { targetId, limit: itemsPerPage, skip, replyLimit: 25 }
 
     SocialChannel.fetchProfileFeed client, fetchOptions, (err, result) ->
       return callback err  if err or not result

  daisy queue


getPagination = (currentPage, numberOfItems, itemsPerPage, route="")->
  # This is the number of adjacent link around current page.
  # E.g. let current page be 9, then pagination will look like this:
  # First Prev ... 4 5 6 7 8 9 10 11 12 13 14 ... Next Last
  # (Except 3-dots, they are useless for bots.)
  PAGERWINDOW = 4

  numberOfPages = Math.ceil(numberOfItems / itemsPerPage)
  firstLink = prevLink = nextLink = lastLink = ""

  if currentPage > 1
    firstLink = getSinglePageLink 1, "First", route
    prevLink  = getSinglePageLink (currentPage - 1), "Prev", route

  if currentPage < numberOfPages
    lastLink  = getSinglePageLink numberOfPages, "Last", route
    nextLink  = getSinglePageLink (currentPage + 1), "Next", route

  pagination = firstLink + prevLink

  start = 1
  end = numberOfPages

  start = currentPage - PAGERWINDOW  if currentPage > PAGERWINDOW

  if currentPage + PAGERWINDOW < numberOfPages
    end   = currentPage + PAGERWINDOW

  if start > 1
    pagination += getNoHrefLink " ... "

  [start..end].map (pageNumber)->
    pagination += getSinglePageLink pageNumber, null, route

  if end < numberOfPages
    pagination += getNoHrefLink " ... "

        content = schemaorgTagsOpening + channelTitleContent +
          pageContent + schemaorgTagsClosing

        paginationOptions = {
          currentPage   : page
          numberOfItems : itemCount
          itemsPerPage
          route         : "Activity/#{route}"
        }

        pagination = getPagination paginationOptions
        fullPage = putContentIntoFullPage content, pagination

        callback null, fullPage
