summaryrefslogtreecommitdiffstats
path: root/routers/user/profile.go
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2017-08-23 03:30:54 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-08-23 09:30:54 +0800
commit1a5fe4326f1166eac447cb598db34f7ae348d610 (patch)
tree0ca4412138469051eda63a981b32353e2139698e /routers/user/profile.go
parentfaf4b503b24d33a2a0f455d26bb782345ab8e0c9 (diff)
downloadgitea-1a5fe4326f1166eac447cb598db34f7ae348d610.tar.gz
gitea-1a5fe4326f1166eac447cb598db34f7ae348d610.zip
Add collaborative repositories to the dashboard (#2205)
* Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r--routers/user/profile.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 1850286411..f56ddc4eab 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -138,7 +138,12 @@ func Profile(ctx *context.Context) {
ctx.Data["Keyword"] = keyword
switch tab {
case "activity":
- retrieveFeeds(ctx, ctxUser, showPrivate, true, false)
+ retrieveFeeds(ctx, models.GetFeedsOptions{RequestedUser: ctxUser,
+ IncludePrivate: showPrivate,
+ OnlyPerformedBy: true,
+ Collaborate: true,
+ IncludeDeleted: false,
+ })
if ctx.Written() {
return
}