KimHbel
Member
Posted 2 years ago #
If you use permalinks (so if you don't use the default postid=<number> format) and you'll do a Preview of your posting while editing, tweetbacks-plugin generates the short-URLs for the postid=XYZ-link.
So if this happens by accident you have to remove the wrong options out of the database. This could be done with the cleanup-options in the option-menu.
If the plugin would supress generating shortURLs in preview-mode, this wouldn't happen... so maybe a point for the to-do-list?
the_beest
Member
Posted 2 years ago #
Hm, may be this is why so many people are complaining that the plugin never picks up their tweets, because it isn't looking for the right URLs.
rickybuchanan
Member
Posted 2 years ago #
I tried clearing out all the short URLs with cleanup options but it hasn't found any of the missing tweets. I always preview articles before posting so this seemed like a possible solution but apparently not :(
Has anybody else had luck with this?
peterjanes
Member
Posted 1 year ago #
This patch stops shorturls from being generated for non-published posts, so it should prevent the wrong permalink from being added to the short URL list:
--- tweetbacks/tweetbacks.php
+++ tweetbacks/tweetbacks.php
@@ -343,7 +343,7 @@
return;
}
global $post;
- if (!isset($post->ID) || $post->ID == 0 || $post->ID == "") {
+ if (!isset($post->ID) || $post->ID == 0 || $post->ID == "" || $post->post_status != 'publish') {
return;
} else {
$post_id = $post->ID;