Signed-off-by: dusk y.bera003.06@protonmail.com
+4
-2
appview/repo/repo.go
+4
-2
appview/repo/repo.go
···
271
271
}
272
272
273
273
func (rp *Repo) getRepoFeed(ctx context.Context, f *reporesolver.ResolvedRepo) (*feeds.Feed, error) {
274
-
pulls, err := db.GetAnyPulls(rp.db, f.RepoAt, 100)
274
+
const feedLimitPerType = 100
275
+
276
+
pulls, err := db.GetAnyPulls(rp.db, f.RepoAt, feedLimitPerType)
275
277
if err != nil {
276
278
return nil, err
277
279
}
278
280
279
-
issues, err := db.GetAnyIssues(rp.db, f.RepoAt, 100)
281
+
issues, err := db.GetAnyIssues(rp.db, f.RepoAt, feedLimitPerType)
280
282
if err != nil {
281
283
return nil, err
282
284
}
appview/repo/router.go
appview/repo/router.go
This file has not been changed.
History
5 rounds
4 comments
expand 1 comment
pull request successfully merged
expand 0 comments
expand 0 comments
expand 1 comment
this is pretty simple for now (only puts pull and issue creation in), like the profile timeline since i assume this could use the same code as notifications code later for keeping track of pulls / issues being closed etc etc
including submissions in the feed now aswell