Permalink
Browse files

only add if doesn't exist

  • Loading branch information...
alexkingorg committed Aug 3, 2012
1 parent d96b08c commit 61d96cabaca1f8e120caf10679ea066c7518fc59
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/aktt.php
View
@@ -860,7 +860,9 @@ function controller(){
}
// store tweet
$t = new AKTT_Tweet($tweet);
- $t->add();
+ if (!$t->exists_by_guid()) {
+ $t->add();
+ }
die();
break;
case 'backfill_tweet_data':

0 comments on commit 61d96ca

Please sign in to comment.