summaryrefslogtreecommitdiff
path: root/scripts/twitterstatusfetcher.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-20 22:08:08 +0000
committerZach Copley <zach@controlyourself.ca>2009-05-20 22:08:08 +0000
commit1a5ef90ea0fbdfa01c47671980402d0264839f27 (patch)
tree8c4585719796525ac3a6fecbcda4ffa42d7224e4 /scripts/twitterstatusfetcher.php
parentf90d0ac6c8daae0f939df75b120368976f7b4a30 (diff)
Preserve order of imported Tweets
Diffstat (limited to 'scripts/twitterstatusfetcher.php')
-rwxr-xr-xscripts/twitterstatusfetcher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php
index 9dfadc760..a61ce1b0d 100755
--- a/scripts/twitterstatusfetcher.php
+++ b/scripts/twitterstatusfetcher.php
@@ -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'));