     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) ->

    switch prefix
      when "#" then token = tagMap?[id]

    return "#{prefix}#{if token then token.title else title or ''}"

createActivityContent = (JAccount, model, comments, createFullHTML=no, putBody=yes, callback) ->
  {Relationship} = require 'jraphical'

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

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