}
$html = '';
if (count($stream)) {
- $newest = $stream[0]->id;
+ $newest = $stream[0]->id_str;
} else {
$newest = $params['since_id'];
$oldest = 0;
foreach ($stream as $tweet) {
/* Don't return the max_id tweet, since we already have it */
- if (!empty($params['max_id']) && $params['max_id'] == $tweet->id) {
+ if (!empty($params['max_id']) && $params['max_id'] == $tweet->id_str) {
continue;
}
$view->clientText = $filter->filter($tweet->source, 'xss');
$view->tweet = $tweet;
$view->instanceid = $instance;
- $oldest = $tweet->id;
+ $oldest = $tweet->id_str;
$html .= $view->render('twitter_tweet');
}
</div>
<?php endif; ?>
<div class="hordeSmStreaminfo">
- <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].buildReply(\'' . $this->tweet->id . '\', \'' . $this->tweet->user->screen_name . '\', \'' . $this->tweet->user->name . '\'); return false;')) . _("Reply") ?></a>
- | <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].retweet(\'' . $this->tweet->id . '\'); return false;')) . _("Retweet") ?></a>
+ <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].buildReply(\'' . (string)$this->tweet->id_str . '\', \'' . $this->tweet->user->screen_name . '\', \'' . $this->tweet->user->name . '\'); return false;')) . _("Reply") ?></a>
+ | <?php echo Horde::selfUrl()->link(array('onclick' => 'Horde[\'twitter' . $this->instanceid . '\'].retweet(\'' . (string)$this->tweet->id_str . '\'); return false;')) . _("Retweet") ?></a>
</div>
<div class="clear"> </div>
</div>