WordPress.org

Ready to get started?Download WordPress

Forums

Twitter posts to Blog
[resolved] Duplicate tweets being imported (2 posts)

  1. weblaunchr
    Member
    Posted 8 months ago #

    Hi Plugin Authors,

    We're making use of your plugin on a clients site, and overall it works as expected however on occasion it brings in duplicate tweets.

    Plugin settings include a single query for from:TwitterName, with the method input empty (what can be used here?) and it's set to bring in 3 tweets each time the cron is run.

    Could you offer any advice on how to prevent this?

    Many Thanks

    https://wordpress.org/plugins/twitter-posts-to-blog/

  2. badbreze
    Member
    Plugin Author

    Posted 8 months ago #

    If two peoples post the same tweet, or a single people posts two times the same text the plugin create duplicates because is based on the id of the tweet, if you have this problem more and more times you can create a filter plugin to check duplicate tweets placing a hook on "dg_tw_before_post_tweet" filter, and setting the "post_status" to "trash" or a hook on "dg_tw_after_post_published" action to delete the published tweet

Reply

You must log in to post.

About this Plugin

About this Topic