From 2454a963e094ec34fb42e72a0c988898f9bd1bde Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 16 Oct 2018 20:06:44 -0400 Subject: [PATCH 1/3] [statusnet] Fix Undefined variable: id --- statusnet/statusnet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 3c6972e3..42c31d75 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -658,7 +658,7 @@ function statusnet_addon_admin(App $a, &$o) } } /* empty form to add new site */ - $id++; + $id = count($sitesform); $sitesform[] = [ 'sitename' => ["sitename[$id]", L10n::t("Site name"), "", ""], 'apiurl' => ["apiurl[$id]", "Api url", "", L10n::t("Base API Path \x28remember the trailing /\x29")], -- 2.45.3 From 68f344baa0a86068050af891e1768270691f6a15 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Oct 2018 07:48:32 -0400 Subject: [PATCH 2/3] [buffer] Fix Undefined offset: 504 notice --- buffer/bufferapp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/buffer/bufferapp.php b/buffer/bufferapp.php index a222b23e..a9aeb49e 100644 --- a/buffer/bufferapp.php +++ b/buffer/bufferapp.php @@ -45,6 +45,7 @@ '403' => 'Permission denied.', '404' => 'Endpoint not found.', '405' => 'Method not allowed.', + '504' => 'Gateway timeout server response timeout.', '1000' => 'An unknown error occurred.', '1001' => 'Access token required.', '1002' => 'Not within application scope.', -- 2.45.3 From 18a742546c9d2eecf08e21134e2180ee44fbacc5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Oct 2018 22:28:28 -0400 Subject: [PATCH 3/3] [twitter] Shorten foreign share mention --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index c69a1f81..1c36cee6 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1896,7 +1896,7 @@ function twitter_convert_share(array $attributes, array $author_contact, $conten if ($author_contact['network'] == Protocol::TWITTER) { $mention = '@' . $author_contact['nickname']; } else { - $mention = Protocol::formatMention($attributes['profile'], $attributes['author']); + $mention = $author_contact['addr']; } return ($is_quote_share ? "\n\n" : '' ) . 'RT ' . $mention . ': ' . $content . "\n\n" . $attributes['link']; -- 2.45.3