Error message "embed url already being used" even after unlinking post from discourse

There was a bug in the plugin that was causing it to attempt to republish posts to Discourse after they had been unlinked on WordPress when the Auto Publish setting is enabled and posts are published with the Block Editor. Publishing the post to Discourse would fail, because the embed URL was already being used on Discourse. I fixed this issue yesterday, but the fix only applies to newly unlinked posts. I’ll come up with something that can fix the issue for posts that were unlinked in the past.

When posts are unlinked, the plugin isn’t removing the topic’s embed_url on Discourse. This means that if a post is unlinked and then republished to Discourse, publishing will fail with the Embed url is already being used error. I’ll fix this.

If you have deleted the associated topic on Discourse, it should be possible to republish the post to Discourse without errors. I’ll check to make sure that the embed_url is removed on Discourse when a topic is deleted.

I’ll be updating the plugin later this week, or some time over the weekend. That update should take care of the issues you are having with unlinked posts.