aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-05-28 14:53:04 +0200
committerThomas Citharel <tcit@tcit.fr>2017-05-28 14:53:04 +0200
commitd5fbb570c974fe8b6f64356772f7cd60b96419da (patch)
treec4cfdd0459473d28707b373b53ddee3cc32ac844 /src/Wallabag/CoreBundle/Helper
parent35941d57ee4d06ec3557d4b126d5f6fd263bcf3a (diff)
downloadwallabag-d5fbb570c974fe8b6f64356772f7cd60b96419da.tar.gz
wallabag-d5fbb570c974fe8b6f64356772f7cd60b96419da.tar.zst
wallabag-d5fbb570c974fe8b6f64356772f7cd60b96419da.zip
Hash the urls to check if they exist
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 9a08db3d..83ecaa66 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -75,6 +75,7 @@ class ContentProxy
75 } 75 }
76 76
77 $entry->setUrl($content['url'] ?: $url); 77 $entry->setUrl($content['url'] ?: $url);
78 $entry->setHashedUrl(hash('sha512', $entry->getUrl()));
78 $entry->setTitle($title); 79 $entry->setTitle($title);
79 $entry->setContent($html); 80 $entry->setContent($html);
80 $entry->setHttpStatus(isset($content['status']) ? $content['status'] : ''); 81 $entry->setHttpStatus(isset($content['status']) ? $content['status'] : '');