File tree 3 files changed +1
-10
lines changed
3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,6 @@ type GetFeedsOptions struct {
713
713
IncludePrivate bool // include private actions
714
714
OnlyPerformedBy bool // only actions performed by requested user
715
715
IncludeDeleted bool // include deleted actions
716
- Collaborate bool // Include collaborative repositories
717
716
}
718
717
719
718
// GetFeeds returns actions according to the provided options
@@ -733,13 +732,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {
733
732
cond = cond .And (builder .In ("repo_id" , repoIDs ))
734
733
}
735
734
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 })
743
736
744
737
if opts .OnlyPerformedBy {
745
738
cond = 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) {
156
156
retrieveFeeds (ctx , models.GetFeedsOptions {RequestedUser : ctxUser ,
157
157
IncludePrivate : true ,
158
158
OnlyPerformedBy : false ,
159
- Collaborate : true ,
160
159
IncludeDeleted : false ,
161
160
})
162
161
if ctx .Written () {
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ func Profile(ctx *context.Context) {
141
141
retrieveFeeds (ctx , models.GetFeedsOptions {RequestedUser : ctxUser ,
142
142
IncludePrivate : showPrivate ,
143
143
OnlyPerformedBy : true ,
144
- Collaborate : true ,
145
144
IncludeDeleted : false ,
146
145
})
147
146
if ctx .Written () {
You can’t perform that action at this time.
0 commit comments