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

	args := r.URL.Query()
	uid := args[common.UID][0]   //User id
	page := args[common.PAGE][0] //Which page
	me, _:= strconv.Atoi(args[common.ME][0] ) //Show me? 0 not, !=0 yes.
	showMe := false
	if me > 0 {
		showMe = true
	}

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

	user, _ := strconv.Atoi(uid)
	pg, _ := strconv.Atoi(page)
	go personal.CommentsActiveList(cxt, session, access_token, user, pg, showMe, chActivesList)
	pActivesList := <-chActivesList

	s := "null"
	if pActivesList != nil {
		s = pActivesList.StringActivesArray()
	}
	fmt.Sprintf(`{"status":%d, "notices":%s}`, common.STATUS_OK, s)
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
//Show new comment notices list.
Show new comment notices list.
// Show new comment notices list .
func handleNewCommentsNoticesList(w http.ResponseWriter, r *http.Request) {
	cxt := appengine.NewContext(r)
	chActivesList := make(chan *personal.ActivesList)
	defer func() {
		if err := recover(); err != nil {
			cxt.Errorf("handleNewCommentsNoticesList: %v", err)
			fmt.Fprintf(w, `{"status":%d}`, common.STATUS_ERR)
		}
	}()
	args := r.URL.Query()
	uid := args[common.UID][0]   
	page := args[common.PAGE][0] 
	me, _:= strconv.Atoi(args[common.ME][0] ) 
	showMe := false
	if me > 0 {
		showMe = true
	}
	cookies := r.Cookies()           
	session := cookies[0].Value      
	access_token := cookies[1].Value 
	user, _ := strconv.Atoi(uid)
	pg, _ := strconv.Atoi(page)
	go personal.CommentsActiveList(cxt, session, access_token, user, pg, showMe, chActivesList)
	pActivesList := <-chActivesList
	s := "null"
	if pActivesList != nil {
		s = pActivesList.StringActivesArray()
	}
	fmt.Sprintf(`{"status":%d, "notices":%s}`, common.STATUS_OK, s)
	w.Header().Set("Content-Type", common.API_RESTYPE)
	fmt.Fprintf(w, s)
}
func handleNewCommentsNoticesList ( w http . ResponseWriter , r * http . Request ) { cxt := appengine . NewContext ( r ) chActivesList := make ( chan * personal . ActivesList ) defer func ( ) { if err := recover ( ) ; err != nil { cxt . Errorf ( " " , err ) fmt . Fprintf ( w , `{"status":%d}` , common . STATUS_ERR ) } } ( ) args := r . URL . Query ( ) uid := args [ common . UID ] [ 0 ] page := args [ common . PAGE ] [ 0 ] me , _ := strconv . Atoi ( args [ common . ME ] [ 0 ] ) showMe := false if me > 0 { showMe = true } cookies := r . Cookies ( ) session := cookies [ 0 ] . Value access_token := cookies [ 1 ] . Value user , _ := strconv . Atoi ( uid ) pg , _ := strconv . Atoi ( page ) go personal . CommentsActiveList ( cxt , session , access_token , user , pg , showMe , chActivesList ) pActivesList := <- chActivesList s := " " if pActivesList != nil { s = pActivesList . StringActivesArray ( ) } fmt . Sprintf ( `{"status":%d, "notices":%s}` , common . STATUS_OK , s ) w . Header ( ) . Set ( " " , common . API_RESTYPE ) fmt . Fprintf ( w , s ) }
Show new comment notices list.
Show new comment notices list .
//User id //Which page //Show me? 0 not, !=0 yes. //Session in cookies passt //Get user-session //Get user-token