]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use Inbox in twitterstatusfetcher
authorEvan Prodromou <evan@status.net>
Sat, 9 Jan 2010 22:02:01 +0000 (14:02 -0800)
committerEvan Prodromou <evan@status.net>
Sat, 9 Jan 2010 22:02:01 +0000 (14:02 -0800)
plugins/TwitterBridge/daemons/twitterstatusfetcher.php

index b4ca12be23bee66796c2d186db7329058ee20517..36732ce46a528f4defba455cf11aa6cd753ed544 100755 (executable)
@@ -268,19 +268,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
 
         }
 
-        if (!Notice_inbox::pkeyGet(array('notice_id' => $notice->id,
-                                         'user_id' => $flink->user_id))) {
-            // Add to inbox
-            $inbox = new Notice_inbox();
-
-            $inbox->user_id   = $flink->user_id;
-            $inbox->notice_id = $notice->id;
-            $inbox->created   = $notice->created;
-            $inbox->source    = NOTICE_INBOX_SOURCE_GATEWAY; // From a private source
-
-            $inbox->insert();
-
-        }
+        Inbox::insertNotice($flink->user_id, $notice->id);
 
         $notice->blowCaches();