]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Preserve order of imported Tweets
authorZach Copley <zach@controlyourself.ca>
Wed, 20 May 2009 22:08:08 +0000 (22:08 +0000)
committerZach Copley <zach@controlyourself.ca>
Wed, 20 May 2009 22:08:08 +0000 (22:08 +0000)
scripts/twitterstatusfetcher.php

index 9dfadc7606ea06fe7234a9cb7ef7ae32cafa710f..a61ce1b0d1622f2d63065d0ce118ca77d97ce3a6 100755 (executable)
@@ -214,7 +214,8 @@ class TwitterStatusFetcher extends Daemon
             return;
         }
 
-        foreach ($timeline as $status) {
+        // Reverse to preserve order
+        foreach (array_reverse($timeline) as $status) {
 
             // Hacktastic: filter out stuff coming from this Laconica
             $source = mb_strtolower(common_config('integration', 'source'));