From 0822bb59a382fbad748fdc2a7e3e04b9ea365695 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Tue, 27 Aug 2019 08:27:06 +0200 Subject: [PATCH] php notice fixings addons: - bufferapp (missing errorcode) - twitter (wrong field name 'nickname') core: - bbcode (incomplete attachementdata) - crypto (uninitialized key) --- buffer/bufferapp.php | 1 + twitter/twitter.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buffer/bufferapp.php b/buffer/bufferapp.php index a9aeb49e..ed1d9353 100644 --- a/buffer/bufferapp.php +++ b/buffer/bufferapp.php @@ -42,6 +42,7 @@ public $errors = [ 'invalid-endpoint' => 'The endpoint you supplied does not appear to be valid.', + '401' => 'Unauthorized.', '403' => 'Permission denied.', '404' => 'Endpoint not found.', '405' => 'Method not allowed.', diff --git a/twitter/twitter.php b/twitter/twitter.php index ac23b84d..eeee6caf 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1900,7 +1900,7 @@ function twitter_update_mentions($body) function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share) { if ($author_contact['network'] == Protocol::TWITTER) { - $mention = '@' . $author_contact['nickname']; + $mention = '@' . $author_contact['nick']; } else { $mention = $author_contact['addr']; } -- 2.39.5