summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Reviews/VNTab.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNWeb/Reviews/VNTab.pm')
-rw-r--r--lib/VNWeb/Reviews/VNTab.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VNWeb/Reviews/VNTab.pm b/lib/VNWeb/Reviews/VNTab.pm
index cd729832..bd1ae870 100644
--- a/lib/VNWeb/Reviews/VNTab.pm
+++ b/lib/VNWeb/Reviews/VNTab.pm
@@ -1,7 +1,6 @@
package VNWeb::Reviews::VNTab;
use VNWeb::Prelude;
-use VNWeb::Reviews::Lib;
sub reviews_ {
@@ -9,7 +8,7 @@ sub reviews_ {
# TODO: Better order, pagination
my $lst = tuwf->dbAlli(
- 'SELECT r.id, r.rid, r.text, r.spoiler, r.c_up, r.c_down, r.c_count, uv.vote, rv.vote AS my, NOT r.isfull AND rm.id IS NULL AS can
+ 'SELECT r.id, r.rid, r.text, r.spoiler, r.c_count, uv.vote, rv.vote AS my, NOT r.isfull AND rm.id IS NULL AS can
, ', sql_totime('r.date'), 'AS date, ', sql_user(), '
FROM reviews r
LEFT JOIN users u ON r.uid = u.id
@@ -56,7 +55,7 @@ sub reviews_ {
div_ sub {
a_ href => "/$r->{id}#review", 'Full review ยป' if !$mini;
a_ href => "/$r->{id}#threadstart", $r->{c_count} == 1 ? '1 comment' : "$r->{c_count} comments";
- review_vote_ $r;
+ elm_ 'Reviews.Vote' => $VNWeb::Reviews::Elm::VOTE_OUT, $r if auth && $r->{can};
};
} for @$lst;
}