Skip to content

Commit

Permalink
[TwitterBridge] Add retweeter to retweeted tweets (RSS-Bridge#1679)
Browse files Browse the repository at this point in the history
  • Loading branch information
triatic authored and comlaterra committed Sep 25, 2020
1 parent b081c4e commit 459f779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridges/TwitterBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ public function collectData(){
$item['username'] = $user_info->screen_name;
$item['fullname'] = $user_info->name;
$item['author'] = $item['fullname'] . ' (@' . $item['username'] . ')';
if (null !== $this->getInput('u') && $item['username'] != $this->getInput('u')) {
$item['author'] .= ' RT: @' . $this->getInput('u');
}
$item['avatar'] = $user_info->profile_image_url_https;

$item['id'] = $tweet->id_str;
Expand Down

0 comments on commit 459f779

Please sign in to comment.