Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Load up to 250 posts on Space profiles

Anand Baburajane8d472592a08
diff --git a/server/space/repo/posts.go b/server/space/repo/posts.go
index 5d8a543450..72c79be54b 100644
--- a/server/space/repo/posts.go
+++ b/server/space/repo/posts.go
@@ -143,8 +143,8 @@ func (r *PostsRepository) GetPost(ctx context.Context, postID int64, viewerSpace
func (r *PostsRepository) ListPostsBySpace(ctx context.Context, spaceID string, viewerSpaceID string, cursor string, limit int) ([]SpacePostRecord, string, error) {
limit = optionalInt(limit, 50)
- if limit > 100 {
- limit = 100
+ if limit > MaxPostsPerSpace {
+ limit = MaxPostsPerSpace
}
args := []any{spaceID, viewerSpaceID}
query := postRecordSelectSQL(`
diff --git a/web/apps/space/src/services/space.ts b/web/apps/space/src/services/space.ts
index 431a41ea82..dd73e100cd 100644
--- a/web/apps/space/src/services/space.ts
+++ b/web/apps/space/src/services/space.ts
@@ -1041,7 +1041,7 @@ export const loadCurrentSpaceProfilePostsPage = async (
spaceId,
viewerSpaceId ?? null,
cursor ?? null,
- 60,
+ 250,
),
);
return page;