Skip to content

Commit 7c808f3

Browse files
committed
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.
1 parent c28fee6 commit 7c808f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/com/github/libretube/api/NewPipeMediaServiceRepository.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ fun CommentsInfoItem.toComment() = Comment(
195195
verified = isUploaderVerified,
196196
replyCount = replyCount.toLong(),
197197
repliesPage = replies?.toNextPageString(),
198-
thumbnail = thumbnails.maxByOrNull { it.height }?.url.orEmpty()
198+
thumbnail = thumbnails.maxByOrNull { it.height }?.url.orEmpty(),
199+
channelOwner = isChannelOwner
199200
)
200201

201202
// the following classes are necessary because kotlinx can't deserialize

0 commit comments

Comments
 (0)