mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
Change the way to define algorithm for hashing url
This commit is contained in:
parent
4a5516376b
commit
0132ccd2a2
3 changed files with 12 additions and 12 deletions
|
@ -66,9 +66,7 @@ class GenerateUrlHashesCommand extends ContainerAwareCommand
|
|||
|
||||
$i = 1;
|
||||
foreach ($entries as $entry) {
|
||||
$entry->setHashedUrl(
|
||||
UrlHasher::hashUrl($entry->getUrl())
|
||||
);
|
||||
$entry->setHashedUrl(UrlHasher::hashUrl($entry->getUrl()));
|
||||
$em->persist($entry);
|
||||
|
||||
if (0 === ($i % 20)) {
|
||||
|
@ -87,7 +85,7 @@ class GenerateUrlHashesCommand extends ContainerAwareCommand
|
|||
*
|
||||
* @param string $username
|
||||
*
|
||||
* @return \Wallabag\UserBundle\Entity\User
|
||||
* @return User
|
||||
*/
|
||||
private function getUser($username)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue