X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories%2FPhoto.pm;h=57a53c46d93b9c68471195f0ac070e3206444fa3;hb=090e12c1f7141a6d5a25014fc33e9b1cc382c0b7;hp=e5cb9a0d51cad0d9c73f743ed312bf2f14459868;hpb=f13b769823b6bd8bc9006e12970bec48969cb695;p=memories.git diff --git a/Memories/Photo.pm b/Memories/Photo.pm index e5cb9a0..57a53c4 100644 --- a/Memories/Photo.pm +++ b/Memories/Photo.pm @@ -14,7 +14,7 @@ BEGIN { my %order_by = ( recent => "uploaded", popular => "hit_count", - rated => "rating/(1+rated)", + loved => "rating/(1+rated)", interesting => INTERESTINGNESS_ALGORITHM, random => "rand()" ); @@ -45,7 +45,6 @@ sub do_upload :Exported { my ($self, $r) = @_; my %upload = $r->upload("photo"); - # XXX Stop anonymous uploads! my $photo = $self->create({ uploader => $r->user, uploaded => Time::Piece->new(),