From 90d91c6fe18a7e0e4796aeb4ef193d4482b07235 Mon Sep 17 00:00:00 2001 From: hylom Date: Fri, 27 Jan 2017 23:23:08 +0900 Subject: [PATCH] Model::Comments: update select method, now learn sid and uid key --- src/newslash_web/lib/Newslash/Model/Comments.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newslash_web/lib/Newslash/Model/Comments.pm b/src/newslash_web/lib/Newslash/Model/Comments.pm index f10f131b..9476f374 100644 --- a/src/newslash_web/lib/Newslash/Model/Comments.pm +++ b/src/newslash_web/lib/Newslash/Model/Comments.pm @@ -60,7 +60,7 @@ sub select { $unique = 1; } } - for my $k (qw|discussion_id pid|) { + for my $k (qw|sid uid discussion_id pid|) { if (defined $params->{$k}) { if ($k eq 'discussion_id') { # discussion_id is sid push @clauses, "comments.sid = ?"; -- 2.11.0