summaryrefslogtreecommitdiff
path: root/providers/Twitter.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-01-16 18:06:09 +0100
committeremkael <emkael@tlen.pl>2017-01-16 18:06:09 +0100
commitbcc5a4c29ec9178d7515c8b29d186f31bac4065b (patch)
tree9124ab2ffff01c1fa083038b8f0c26b95e3c6730 /providers/Twitter.php
parent68f5ac77ee0ca7788c7c48681ad2067de2af427b (diff)
* cosmetic changes to the feed standard layout
Diffstat (limited to 'providers/Twitter.php')
-rw-r--r--providers/Twitter.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/providers/Twitter.php b/providers/Twitter.php
index 868bb28..e9b98e1 100644
--- a/providers/Twitter.php
+++ b/providers/Twitter.php
@@ -97,7 +97,6 @@ class Twitter extends \Providers\Provider {
}
}
}
- usort($filteredContent, function($c1, $c2) { return strcmp($c1->id_str, $c2->id_str); });
$content = $filteredContent;
if ($spamHashes) {
foreach ($spamHashes as $hash) {
@@ -112,6 +111,15 @@ class Twitter extends \Providers\Provider {
return $content;
}
+ protected function _sortContent($content) {
+ usort($content, function($c1, $c2) { return strcmp($c2->id_str, $c1->id_str); });
+ return $content;
+ }
+
+ public function title() {
+ return sprintf("%s's timeline", $this->_feed);
+ }
+
}
?>