···
t.Cleanup(func() { _ = db.Close() })
+
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")
+
// Verify community reference includes handle (following atProto pattern)
+
assert.NotNil(t, feedPost.Post.Community, "Post %d should have community reference", i)
+
assert.NotEmpty(t, feedPost.Post.Community.Handle, "Post %d community should have handle", i)
+
assert.NotEmpty(t, feedPost.Post.Community.DID, "Post %d community should have DID", i)
+
assert.NotEmpty(t, feedPost.Post.Community.Name, "Post %d community should have name", i)
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(
···
t.Cleanup(func() { _ = db.Close() })
+
feedRepo := postgres.NewCommunityFeedRepository(db, "test-cursor-secret")
communityRepo := postgres.NewCommunityRepository(db)
communityService := communities.NewCommunityService(