X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FController%2FEntryRestController.php;h=768c4fdc3423c7db828a9bca9d854bc2f884e69a;hb=f93a3109a5f0999dbbd69131c9e5041c390120c9;hp=ae9a93aa3cbea81a4d1a1dbf6b16de7ea8f859b6;hpb=1112e54772c9308ee3d7417869b5b8ef9b2b9812;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index ae9a93aa..768c4fdc 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php @@ -680,10 +680,10 @@ class EntryRestController extends WallabagRestController } if (!is_null($isPublic)) { - $entry->cleanUid(); - if (true === (bool) $isPublic && null === $entry->getUid()) { $entry->generateUid(); + } elseif (false === (bool) $isPublic) { + $entry->cleanUid(); } }