diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 13:51:57 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-04-01 13:51:57 +0200 |
commit | 8a6456629814039cfc623cdb279bcba06dacff50 (patch) | |
tree | b3ae2459651b6ad085588fca0c624c6df554deb3 /src/Wallabag/CoreBundle/Helper | |
parent | 9c2b2aae70b06411336e6eb6ac43b3ebd30dc38c (diff) | |
download | wallabag-8a6456629814039cfc623cdb279bcba06dacff50.tar.gz wallabag-8a6456629814039cfc623cdb279bcba06dacff50.tar.zst wallabag-8a6456629814039cfc623cdb279bcba06dacff50.zip |
Use a better index for hashed_url
It'll most often be used in addition to the `user_id`.
Also, automatically generate the hash when saving the url.
Switch from `md5` to `sha1`.
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 0534d27b..31953f12 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -248,8 +248,6 @@ class ContentProxy | |||
248 | { | 248 | { |
249 | $this->updateOriginUrl($entry, $content['url']); | 249 | $this->updateOriginUrl($entry, $content['url']); |
250 | 250 | ||
251 | $entry->setHashedUrl(hash('md5', $entry->getUrl())); | ||
252 | |||
253 | $this->setEntryDomainName($entry); | 251 | $this->setEntryDomainName($entry); |
254 | 252 | ||
255 | if (!empty($content['title'])) { | 253 | if (!empty($content['title'])) { |