         
         //Only set the endorsed flag if the post is a question
         if threadType == .Question {
-            query["endorsed"] = JSON(endorsed.edxServerString)
+            query["endorsed"] = JSON(endorsed)
         }
         
         return NetworkRequest(

        )
    }

}
    }
}


public class DiscussionAPI {

    private static func threadDeserializer(response : NSHTTPURLResponse, json : JSON) -> Result<DiscussionThread> {
        return DiscussionThread(json : json).toResult(NSError.oex_courseContentLoadError())
    }
