diff --git a/core/components/quip/controllers/web/LatestComments.php b/core/components/quip/controllers/web/LatestComments.php index 989caff..4ca19e2 100644 --- a/core/components/quip/controllers/web/LatestComments.php +++ b/core/components/quip/controllers/web/LatestComments.php @@ -149,9 +149,15 @@ public function getComments() { $thread = $this->getProperty('thread',''); if (empty($thread)) return array(); $c = $this->modx->newQuery('quipComment'); - $c->where(array( - 'quipComment.thread' => $thread, - )); + if (strpos($thread,',')===false) { + $c->where(array( + 'quipComment.thread' => $thread, + )); + }else{ + $c->where(array( + 'quipComment.thread:IN' => explode(',', $thread), + )); + } break; case 'family': $family = $this->getProperty('family','');