When I view this community through lemmy.world, there are 2 posts (mine and one more). But when I view it through lemmy.sdf.org, only my post is visible. I don't understand why is this happening.
Your home instance will only start receiving posts from remote communities from the time that the first user subscribes to it onwards. So assuming you are the first person from the SDF.org Lemmy instance to sub to that community, the SDF.org instance will not backfill posts or comments from prior to the time that you subbed. If you know the URL of a specific post or comment, you can force the SDF.org instance to fetch it by plugging the post or comment's direct URL into the search bar.
There can sometimes be a delay when synchronizing comments between servers. Growing pains of sudden growth in the fediverse. Do you still not see the comment after an hour or two?