From 1a5fe4326f1166eac447cb598db34f7ae348d610 Mon Sep 17 00:00:00 2001 From: Bwko Date: Wed, 23 Aug 2017 03:30:54 +0200 Subject: 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 --- routers/user/profile.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'routers/user/profile.go') 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 } -- cgit v1.2.3