aboutsummaryrefslogtreecommitdiff
path: root/app/shares.php
diff options
context:
space:
mode:
authorGravatar Patrick Crandol <patrick@crandol.com> 2018-12-11 18:20:04 -0500
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-12-12 00:20:04 +0100
commita1071e7dd9b9efe3b1f61a3f6bb9f936ad6d7c6a (patch)
tree9c8d866b35e92bac466a9930304c8973ce45ecd0 /app/shares.php
parent195c0b6867848f1bea0ec2eb861b7dad5bc1db60 (diff)
Add option to share to Pinboard. (#2178)
* Prelim. Add Pinboard based on the url found in the "For iPad" section here: https://pinboard.in/howto/ * add i18n string for Pinboard * Add help to pinboard * add title to Pinboard Share Title seems to be an element, but isn't documented in the API. Perhaps it's an alternative to description? It probably won't hurt to include it. * Feedback from @samplereality * Minor Whitespace
Diffstat (limited to 'app/shares.php')
-rw-r--r--app/shares.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/shares.php b/app/shares.php
index 6d234b374..4f7fde3ed 100644
--- a/app/shares.php
+++ b/app/shares.php
@@ -137,4 +137,11 @@ return array(
'form' => 'simple',
'method' => 'GET',
),
+ 'pinboard' => array(
+ 'url' => 'https://pinboard.in/add?next=same&amp;url=~LINK~&amp;title=~TITLE~',
+ 'transform' => array('urlencode'),
+ 'help' => 'https://pinboard.in/api/',
+ 'form' => 'simple',
+ 'method' => 'GET',
+ ),
);