]> git.mxchange.org Git - friendica-addons.git/commitdiff
php notice fixings
authorPhilipp Holzer <admin+github@philipp.info>
Tue, 27 Aug 2019 06:27:06 +0000 (08:27 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Tue, 27 Aug 2019 06:27:06 +0000 (08:27 +0200)
addons:
- bufferapp (missing errorcode)
- twitter (wrong field name 'nickname')
core:
- bbcode (incomplete attachementdata)
- crypto (uninitialized key)

buffer/bufferapp.php
twitter/twitter.php

index a9aeb49e78bd72463382e70cfbb60734240ac33d..ed1d9353cec843f1a31a033254cb03f750991259 100644 (file)
@@ -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.',
index ac23b84da417a9dd3ea990fb9b495fcd271373c6..eeee6cafcde94d04649d92daec36fe7876b64475 100644 (file)
@@ -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'];
        }