       @author_id = user_id
     else
       _.extend( @, post )
-
+      
       # check if user added a new tag
-      for tag of client.my_tags
+      for tag, weight of client.my_tags
         @tags[tag] ?= { weight: 0 }
         @tags[tag].users ?= []
         unless user_id in @tags[tag].users

    _.extend( @,
      tags: {} # tag: weight
      my_tags: {} # same as tags
      reply_count: 0
      suggested_tags: []
    )


    # define the shared client-server schema
    _.extend( @,
      _id: ''
      author_id: ''
      parent_id: undefined
      content: ''
    )
    
    for key in [ '_id', 'author_id', 'parent_id', 'content' ]
      @[key] = either[key] if either[key]?
       
class ClientPost extends SharedPost
