Merge pull request #880 from nupplaphil/bug/friendica-7299

[various] PHP Notice fixings
This commit is contained in:
Hypolite Petovan 2019-08-27 09:02:22 -04:00 committed by GitHub
commit 1a39ce3997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@
public $errors = [ public $errors = [
'invalid-endpoint' => 'The endpoint you supplied does not appear to be valid.', 'invalid-endpoint' => 'The endpoint you supplied does not appear to be valid.',
'401' => 'Unauthorized.',
'403' => 'Permission denied.', '403' => 'Permission denied.',
'404' => 'Endpoint not found.', '404' => 'Endpoint not found.',
'405' => 'Method not allowed.', '405' => 'Method not allowed.',

View File

@ -1900,7 +1900,7 @@ function twitter_update_mentions($body)
function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share) function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share)
{ {
if ($author_contact['network'] == Protocol::TWITTER) { if ($author_contact['network'] == Protocol::TWITTER) {
$mention = '@' . $author_contact['nickname']; $mention = '@' . $author_contact['nick'];
} else { } else {
$mention = $author_contact['addr']; $mention = $author_contact['addr'];
} }