]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/ContentProxy.php
Hash the urls to check if they exist
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / ContentProxy.php
index 9a08db3d8e81738fdef20fdcd1871d5f4a81d9de..83ecaa660ce9aa8f283694f50f97a35f350a59b9 100644 (file)
@@ -75,6 +75,7 @@ class ContentProxy
         }
 
         $entry->setUrl($content['url'] ?: $url);
+        $entry->setHashedUrl(hash('sha512', $entry->getUrl()));
         $entry->setTitle($title);
         $entry->setContent($html);
         $entry->setHttpStatus(isset($content['status']) ? $content['status'] : '');