···
t.Cleanup(func() { _ = db.Close() })
31
-
feedRepo := postgres.NewCommunityFeedRepository(db)
31
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
assert.NotEmpty(t, record["community"], "Record should have community")
assert.NotEmpty(t, record["author"], "Record should have author")
assert.NotEmpty(t, record["createdAt"], "Record should have createdAt")
90
+
// Verify community reference includes handle (following atProto pattern)
91
+
assert.NotNil(t, feedPost.Post.Community, "Post %d should have community reference", i)
92
+
assert.NotEmpty(t, feedPost.Post.Community.Handle, "Post %d community should have handle", i)
93
+
assert.NotEmpty(t, feedPost.Post.Community.DID, "Post %d community should have DID", i)
94
+
assert.NotEmpty(t, feedPost.Post.Community.Name, "Post %d community should have name", i)
···
t.Cleanup(func() { _ = db.Close() })
102
-
feedRepo := postgres.NewCommunityFeedRepository(db)
108
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
178
-
feedRepo := postgres.NewCommunityFeedRepository(db)
184
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
234
-
feedRepo := postgres.NewCommunityFeedRepository(db)
240
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
325
-
feedRepo := postgres.NewCommunityFeedRepository(db)
331
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
361
-
feedRepo := postgres.NewCommunityFeedRepository(db)
367
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
417
-
feedRepo := postgres.NewCommunityFeedRepository(db)
423
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
461
-
feedRepo := postgres.NewCommunityFeedRepository(db)
467
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
514
-
feedRepo := postgres.NewCommunityFeedRepository(db)
520
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
615
-
feedRepo := postgres.NewCommunityFeedRepository(db)
621
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(