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.
This commit is contained in:
FineFindus 2025-03-26 13:13:12 +01:00
parent c28fee67e4
commit 7c808f3697
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

View File

@ -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