]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #862 from ArthurHoaro/theme/tags-everywhere
authorArthurHoaro <arthur@hoa.ro>
Sun, 7 May 2017 16:39:25 +0000 (18:39 +0200)
committerGitHub <noreply@github.com>
Sun, 7 May 2017 16:39:25 +0000 (18:39 +0200)
Inject tag list everywhere to make autocomplete work on the fixed search bar

README.md
application/NetscapeBookmarkUtils.php

index cfdefc66da5763b050d61487900f35002a267d4b..d57f5202c9c5e8eb183c85b5b17ecbc73bec296d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -85,6 +85,12 @@ dailymotion, flickr, imageshack, imgur, vimeo, xkcd, youtube...
 - URL cleanup: automatic removal of `?utm_source=...`, `fb=...`
 - discreet pop-up notification when a new release is available
 
+### REST API
+
+Easily extensible by any client using the REST API exposed by Shaarli.
+
+See the [API documentation](http://shaarli.github.io/api-documentation/).
+
 ### Other usages
 Though Shaarli is primarily a bookmarking application, it can serve other purposes
 (see [usage examples](https://github.com/shaarli/Shaarli/wiki#usage-examples)):
index bbfde1386075c42b2deb61a57d8aaed1d39f336b..2a10ff22149f8c89f30458d9e5c907e19847438a 100644 (file)
@@ -180,6 +180,7 @@ class NetscapeBookmarkUtils
                 $newLink['id'] = $existingLink['id'];
                 $newLink['created'] = $existingLink['created'];
                 $newLink['updated'] = new DateTime();
+                $newLink['shorturl'] = $existingLink['shorturl'];
                 $linkDb[$existingLink['id']] = $newLink;
                 $importCount++;
                 $overwriteCount++;