|
|
@ -957,17 +957,13 @@ func viewStats(app *app, u *User, w http.ResponseWriter, r *http.Request) error |
|
|
|
Collection: c, |
|
|
|
Collection: c, |
|
|
|
TopPosts: topPosts, |
|
|
|
TopPosts: topPosts, |
|
|
|
} |
|
|
|
} |
|
|
|
/* |
|
|
|
|
|
|
|
if app.cfg.App.Federation { |
|
|
|
if app.cfg.App.Federation { |
|
|
|
// TODO: fetch all user's blogs, fetch number of followers for each
|
|
|
|
folls, err := app.db.GetAPFollowers(c) |
|
|
|
// TODO: might as well show page views for blogs, too
|
|
|
|
|
|
|
|
folls, err = app.db.GetAPFollowers() |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
obj.APFollowers = len(folls) |
|
|
|
obj.APFollowers = len(*folls) |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showUserPage(w, "stats", obj) |
|
|
|
showUserPage(w, "stats", obj) |
|
|
|
return nil |
|
|
|
return nil |
|
|
|