 
   tagStateChanged:(state, tagto, post)->
     {JTag} = KD.remote.api
-    JTag.one {"slug" : tagto}, (err, tag)=>
+    JTag.one "slug" : tagto, (err, tag)=>
       if state
         @addTagToPost post, tag
       else

    activity.modify options, (err)->
      KD.showError err if err

  addTagToPost : (activity, tagToAdd, update = no) ->
    if not tagToAdd
      return new KDNotificationView title : "Tag not found!"


    @bugTagSwitch   = new KodingSwitch
      cssClass      : 'dark'
      defaultValue  : "bug" in postUserTags
      callback      : (state) =>
        @tagStateChanged state, "bug", post

    modal.addSubView new KDLabelView
