my %order_by = (
recent => "uploaded",
popular => "hit_count",
- rated => "rating/(1+rated)",
+ loved => "rating/(1+rated)",
interesting => INTERESTINGNESS_ALGORITHM,
random => "rand()"
);
my ($self, $r) = @_;
my %upload = $r->upload("photo");
- # XXX Stop anonymous uploads!
my $photo = $self->create({
uploader => $r->user,
uploaded => Time::Piece->new(),