You’d have to ask @angus what the initial target of the Discourse plug-in was. But both Mastodon and Lemmy use ActivityPub for federation, just different ‘dialects’ of it, so to speak. Leading to mismatches like the ones you’ve noticed, when things don’t work as expected. Some of the negotiations over how to improve Discourse<>Lemmy federation are described here;