Merge pull request #973 from annando/notices

Fixing some notices
This commit is contained in:
Tobias Diekershoff 2020-04-04 15:31:13 +02:00 committed by GitHub
commit cb34593770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -1956,6 +1956,10 @@ function twitter_update_mentions($body)
function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share)
{
if (empty($contact)) {
return $content . "\n\n" . $attributes['link'];
}
if ($author_contact['network'] == Protocol::TWITTER) {
$mention = '@' . $author_contact['nick'];
} else {