     hash = account.data.profile.hash
   return hash
 
-getPlainActivityBody = (activity) ->
-  {body} = activity
+normalizeActivityBody = (activity, bodyString="") ->
+  if bodyString
+    body = bodyString
+  else
+    {body} = activity
+
   tagMap = {}
+  console.log "activity.tags: ", activity.tags
   activity.tags?.forEach (tag) -> tagMap[tag.getId()] = tag
 
   return body.replace /\|(.+?)\|/g, (match, tokenString) ->

        hash = getUserHash acc

        if model?.body? and putBody
          body = getPlainActivityBody model
          body = marked body,
            gfm       : true
            pedantic  : false
            sanitize  : true
        else
          body = ""


{argv} = require 'optimist'
{uri} = require('koding-config-manager').load("main.#{argv.c}")

forceTwoDigits = (val) ->
  if val < 10
    return "0#{val}"
