File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,6 @@ type GetFeedsOptions struct {
713713IncludePrivate bool // include private actions
714714OnlyPerformedBy bool // only actions performed by requested user
715715IncludeDeleted bool // include deleted actions
716- Collaborate bool // Include collaborative repositories
717716}
718717
719718// GetFeeds returns actions according to the provided options
@@ -733,13 +732,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
733732cond = cond .And (builder .In ("repo_id" , repoIDs ))
734733}
735734
736- var userIDCond builder.Cond = builder.Eq {"user_id" : opts .RequestedUser .ID }
737- if opts .Collaborate {
738- userIDCond = userIDCond .Or (builder .Expr (
739- "repo_id IN (SELECT repo_id FROM `access` WHERE access.user_id = ?)" ,
740- opts .RequestedUser .ID ))
741- }
742- cond = cond .And (userIDCond )
735+ cond = cond .And (builder.Eq {"user_id" : opts .RequestedUser .ID })
743736
744737if opts .OnlyPerformedBy {
745738cond = cond .And (builder.Eq {"act_user_id" : opts .RequestedUser .ID })
Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ func Dashboard(ctx *context.Context) {
156156retrieveFeeds (ctx , models.GetFeedsOptions {RequestedUser : ctxUser ,
157157IncludePrivate : true ,
158158OnlyPerformedBy : false ,
159- Collaborate : true ,
160159IncludeDeleted : false ,
161160})
162161if ctx .Written () {
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ func Profile(ctx *context.Context) {
141141retrieveFeeds (ctx , models.GetFeedsOptions {RequestedUser : ctxUser ,
142142IncludePrivate : showPrivate ,
143143OnlyPerformedBy : true ,
144- Collaborate : true ,
145144IncludeDeleted : false ,
146145})
147146if ctx .Written () {
You can’t perform that action at this time.
0 commit comments