chore: update CI4 to v4.6.4 + php and js packages to latest

This commit is contained in:
Yassine Doghri 2025-12-20 18:48:44 +00:00
commit 133e308603
36 changed files with 2015 additions and 1476 deletions

View file

@ -371,15 +371,15 @@ class EpisodeModel extends UuidModel
{
$episodeCommentsCount = (new EpisodeCommentModel())->builder()
->select('episode_id, COUNT(*) as `comments_count`')
->where('in_reply_to_id', null)
->where('in_reply_to_id')
->groupBy('episode_id')
->getCompiledSelect();
$episodePostsRepliesCount = (new PostModel())->builder()
->select('fediverse_posts.episode_id as episode_id, COUNT(*) as `comments_count`')
->join('fediverse_posts as fp', 'fediverse_posts.id = fp.in_reply_to_id')
->where('fediverse_posts.in_reply_to_id', null)
->where('fediverse_posts.episode_id IS NOT', null)
->where('fediverse_posts.in_reply_to_id')
->where('fediverse_posts.episode_id IS NOT')
->groupBy('fediverse_posts.episode_id')
->getCompiledSelect();
@ -402,7 +402,7 @@ class EpisodeModel extends UuidModel
$episodePostsCount = $this->builder()
->select('episodes.id, COUNT(*) as `posts_count`')
->join('fediverse_posts', 'episodes.id = fediverse_posts.episode_id')
->where('in_reply_to_id', null)
->where('in_reply_to_id')
->groupBy('episodes.id')
->get()
->getResultArray();