Are you using a Lemmy client or a mastodon client? I think it is better to use a client that can parse these "Lemmy-like" way of federations, otherwise you will get every post.
I don't know if it is possible for Lemmy to only federate posts but not comments with other apps like mastodon.