1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Use hash given url to avoid duplicate

Using hashed url we can ensure an index on them to ensure it's fast.
This commit is contained in:
Jeremy Benoist 2019-05-29 14:18:04 +02:00
parent b7fa51ae7d
commit f3bfb875e9
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
6 changed files with 134 additions and 132 deletions

View file

@ -76,9 +76,10 @@ class ContentProxy
// Not sure what are the other possible cases where this property is empty
if (empty($entry->getUrl()) && !empty($url)) {
$entry->setUrl($url);
$entry->setGivenUrl($url);
}
$entry->setGivenUrl($url);
$this->stockEntry($entry, $content);
}