forked from blallo/rss-bridge
[TwitterBridgeExtended] Reduce size of emojis in the tweet
This commit is contained in:
parent
13d9b8d462
commit
0683457eb3
1 changed files with 5 additions and 2 deletions
|
@ -69,9 +69,12 @@ class TwitterBridgeExtended extends BridgeAbstract{
|
||||||
$link->removeAttribute('title');
|
$link->removeAttribute('title');
|
||||||
}
|
}
|
||||||
|
|
||||||
// get tweet text
|
// process emojis (reduce size)
|
||||||
//$item->content = '<a href="https://twitter.com/'.$item->username.'"><img style="align:top;width:75px;" alt="'.$item->username.'" src="'.$item->avatar.'" /></a><p>'.$item->fullname.'</p><br/><blockquote>'.str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext).'</blockquote>';
|
foreach($tweet->find('img.Emoji') as $img){
|
||||||
|
$img->style .= ' height: 1em;';
|
||||||
|
}
|
||||||
|
|
||||||
|
// get tweet text
|
||||||
$cleanedTweet = str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext);
|
$cleanedTweet = str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext);
|
||||||
|
|
||||||
$item->content = <<<EOD
|
$item->content = <<<EOD
|
||||||
|
|
Loading…
Reference in a new issue