diff options
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/EntryRestController.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/EntryRestController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index ae9a93aa..afd708e6 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php | |||
@@ -680,10 +680,10 @@ class EntryRestController extends WallabagRestController | |||
680 | } | 680 | } |
681 | 681 | ||
682 | if (!is_null($isPublic)) { | 682 | if (!is_null($isPublic)) { |
683 | $entry->cleanUid(); | ||
684 | |||
685 | if (true === (bool) $isPublic && null === $entry->getUid()) { | 683 | if (true === (bool) $isPublic && null === $entry->getUid()) { |
686 | $entry->generateUid(); | 684 | $entry->generateUid(); |
685 | } else if (false === (bool) $isPublic) { | ||
686 | $entry->cleanUid(); | ||
687 | } | 687 | } |
688 | } | 688 | } |
689 | 689 | ||