Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
inc/rest/routes/NewsRoutes.php
@@ -108,8 +108,8 @@
    public function getNews(WP_REST_Request $request):WP_REST_Response
    {
        $args = $this->buildQueryArgs($request);
        $key = $this->cache->generateKey($args);
        $cache = $this->cache->get($key);
        $cache = $this->cache->get($args);
        if ($cache) {
             return $this->success($cache);
        }
@@ -125,7 +125,7 @@
            'total_pages'   => $query->max_num_pages
        ];
        $this->cache->set($key, $results);
        $this->cache->set($args, $results);
        return $this->success($results);
    }
@@ -325,7 +325,7 @@
        $artist = jvbContentFromUser($post->post_author);
        $upvotes = (int) get_post_meta($post->ID, BASE.'upvotes', true);
        $downvotes = (int) get_post_meta($post->ID, BASE.'downvotes', true);
        $comments = JVB()->routes('comments')->getItemResponse($post->ID, BASE.'news');
        $comments = ResponseRoutes::getInstance()->getItemResponse($post->ID, ['post_type' => BASE.'news']);
        return [
            'id'            => $post->ID,