aboutsummaryrefslogtreecommitdiff
path: root/internal/db/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/actions.go')
-rw-r--r--internal/db/actions.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/internal/db/actions.go b/internal/db/actions.go
index 74c15291..72d3b6ac 100644
--- a/internal/db/actions.go
+++ b/internal/db/actions.go
@@ -111,16 +111,16 @@ func (db *actions) listByOrganization(ctx context.Context, orgID, actorID, after
Where("?", afterID <= 0).
Or("id < ?", afterID),
).
- Where("repo_id IN (?)",
- db.Select("repository.id").
- Table("repository").
- Joins("JOIN team_repo ON repository.id = team_repo.repo_id").
- Where("team_repo.team_id IN (?)",
- db.Select("team_id").
- Table("team_user").
- Where("team_user.org_id = ? AND uid = ?", orgID, actorID),
- ).
- Or("repository.is_private = ? AND repository.is_unlisted = ?", false, false),
+ Where("repo_id IN (?)", db.
+ Select("repository.id").
+ Table("repository").
+ Joins("JOIN team_repo ON repository.id = team_repo.repo_id").
+ Where("team_repo.team_id IN (?)", db.
+ Select("team_id").
+ Table("team_user").
+ Where("team_user.org_id = ? AND uid = ?", orgID, actorID),
+ ).
+ Or("repository.is_private = ? AND repository.is_unlisted = ?", false, false),
).
Limit(conf.UI.User.NewsFeedPagingNum).
Order("id DESC")