If you deleted the first post, then you’ll get duplicated posts forever. You have to change the URL.
Basically the first post is the most important. If it is deleted, a new post will be created during every refresh.
Deleting the campaign won’t help because the plugin won’t distinguish between different campaigns. This is probably also a potential problem, if an item is ever shared between two different feeds in two different topics/categories. They’ll never duplicate in this case.
Source:
It probably should be something like:
PostCustomField
.where(name: "autobot_source_url", value: source_url)
.where(name: "autobot_campaign_id", value: campaign["id"])
.first.try(:post)