     body: body
     updatedAt: new Date()
 
-  if getPost().id
-    post = getPost().update attrs
+  if getPost( Session.get('postId') ).id
+    post = getPost( Session.get('postId') ).update attrs
     if post.errors
       return cb(null, new Error _(post.errors[0]).values()[0])
     cb null

    # Load post body initially, if any
    if sub.ready() and not ranOnce
      ranOnce = true
      post = getPost()
      if post?.body
        @$('.editable').html post.body
        @$('.html-editor').html post.body


# Return current post if we are editing one, or empty object if this is a new
# post that has not been saved yet.
getPost = (id) ->
  (Post.first( { _id : id } ) ) or {}

# Find tags using typeahead
substringMatcher = (strs) ->
