[twitter] Use correct variable name for emptiness test in twitter_convert_share()
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 4 Apr 2020 16:36:33 +0000 (12:36 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 4 Apr 2020 16:36:33 +0000 (12:36 -0400)
twitter/twitter.php

index bcbaabe..d269739 100644 (file)
@@ -1956,7 +1956,7 @@ function twitter_update_mentions($body)
 
 function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share)
 {
-       if (empty($contact)) {
+       if (empty($author_contact)) {
                return $content . "\n\n" . $attributes['link'];
        }