Don't hide quoting tweets when 'hide retweets' is selected (#2706)

This commit is contained in:
quickwick 2022-05-08 07:22:31 -07:00 committed by GitHub
parent 0ce71d561d
commit d107592094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,11 +330,12 @@ EOD
}
// Check if Retweet or Reply
$retweetTypes = array('retweeted', 'quoted');
//$retweetTypes = array('retweeted', 'quoted');
$isRetweet = false;
$isReply = false;
if(isset($tweet->referenced_tweets)) {
if(in_array($tweet->referenced_tweets[0]->type, $retweetTypes)) {
//if(in_array($tweet->referenced_tweets[0]->type, $retweetTypes)) {
if($tweet->referenced_tweets[0]->type === 'retweeted') {
$isRetweet = true;
} elseif ($tweet->referenced_tweets[0]->type === 'replied_to') {
$isReply = true;