]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/LinkFilter.php
Add a persistent 'shorturl' key to all links
[github/shaarli/Shaarli.git] / application / LinkFilter.php
index 7bab46bac0ac802f6bb537a094751de71e868c87..daa6d9cc26a8ed139f34581ff619d98969415073 100644 (file)
@@ -120,7 +120,7 @@ class LinkFilter
     {
         $filtered = array();
         foreach ($this->links as $key => $l) {
-            if ($smallHash == smallHash($l['created']->format('Ymd_His'))) {
+            if ($smallHash == $l['shorturl']) {
                 // Yes, this is ugly and slow
                 $filtered[$key] = $l;
                 return $filtered;