func handleClearCommentsNotice(w http.ResponseWriter, r *http.Request) {
	cxt := appengine.NewContext(r)
	chResult := make(chan *common.Result)
	defer func() {
		if err := recover(); err != nil {
			cxt.Errorf("handleClearCommentsNotice: %v", err)
			fmt.Fprintf(w, `{"status":%d}`, common.STATUS_ERR)
		}
	}()

	cookies := r.Cookies()           //Session in cookies passt
	session := cookies[0].Value      //Get user-session
	access_token := cookies[1].Value //Get user-token

	pRes := common.ClearCommentsNotice(cxt, session, access_token, chResult)
	s := fmt.Sprintf(`{"status":%d, "result":%s}`, common.STATUS_OK, pRes.String())
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
//Clear notice of comments.
Clear notice of comments.
// Clear notice of comments .
func handleClearCommentsNotice(w http.ResponseWriter, r *http.Request) {
	cxt := appengine.NewContext(r)
	chResult := make(chan *common.Result)
	defer func() {
		if err := recover(); err != nil {
			cxt.Errorf("handleClearCommentsNotice: %v", err)
			fmt.Fprintf(w, `{"status":%d}`, common.STATUS_ERR)
		}
	}()
	cookies := r.Cookies()           
	session := cookies[0].Value      
	access_token := cookies[1].Value 
	pRes := common.ClearCommentsNotice(cxt, session, access_token, chResult)
	s := fmt.Sprintf(`{"status":%d, "result":%s}`, common.STATUS_OK, pRes.String())
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
func handleClearCommentsNotice ( w http . ResponseWriter , r * http . Request ) { cxt := appengine . NewContext ( r ) chResult := make ( chan * common . Result ) defer func ( ) { if err := recover ( ) ; err != nil { cxt . Errorf ( " " , err ) fmt . Fprintf ( w , `{"status":%d}` , common . STATUS_ERR ) } } ( ) cookies := r . Cookies ( ) session := cookies [ 0 ] . Value access_token := cookies [ 1 ] . Value pRes := common . ClearCommentsNotice ( cxt , session , access_token , chResult ) s := fmt . Sprintf ( `{"status":%d, "result":%s}` , common . STATUS_OK , pRes . String ( ) ) w . Header ( ) . Set ( " " , common . API_RESTYPE ) fmt . Fprintf ( w , s ) }
Clear notice of comments.
Clear notice of comments .
//Session in cookies passt //Get user-session //Get user-token