From 7c808f3697e54d79656f958ca7d7e00a1e4c7e57 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Wed, 26 Mar 2025 13:13:12 +0100 Subject: [PATCH] fix(Local): set channelOwner for Comments Fixes a parity issue, between Piped and the local mode, where the local mode would now mark the channelOwner's comments, due the `channelOwner` not being set. --- .../com/github/libretube/api/NewPipeMediaServiceRepository.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt b/app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt index f8b6e0329..eb749cf0d 100644 --- a/app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt +++ b/app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt @@ -195,7 +195,8 @@ fun CommentsInfoItem.toComment() = Comment( verified = isUploaderVerified, replyCount = replyCount.toLong(), repliesPage = replies?.toNextPageString(), - thumbnail = thumbnails.maxByOrNull { it.height }?.url.orEmpty() + thumbnail = thumbnails.maxByOrNull { it.height }?.url.orEmpty(), + channelOwner = isChannelOwner ) // the following classes are necessary because kotlinx can't deserialize