         )
     }
 
-}+}

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

    }
    
    static func getFollowedThreads(courseID courseID : String, filter: DiscussionPostsFilter, orderBy: DiscussionPostsSort, pageNumber : Int = 1) -> NetworkRequest<[DiscussionThread]> {
        var query = ["course_id" : JSON(courseID), "following" : JSON(true) ]
        if let view = filter.apiRepresentation {
            query["view"] = JSON(view)
        }
