]> git.decadent.org.uk Git - memories.git/blobdiff - Memories/Photo.pm
It's a bit of a hack but we blatantly can't call it "rated". Closes #11, anyhow.
[memories.git] / Memories / Photo.pm
index 5af62e9dd57af4dea02cac11fea01a196bc613e0..eef30194cba202444604288434fd44cdf8fd1e67 100644 (file)
@@ -14,6 +14,7 @@ BEGIN {
 my %order_by = (
      recent => "uploaded",
      popular => "hit_count",
+     loved => "rating/(1+rated)",
      interesting => INTERESTINGNESS_ALGORITHM,
      random => "rand()"
 );