Fix replying to content contains HTML tags

This commit is contained in:
kyori19 2023-04-04 09:05:35 +09:00
parent 30d223b281
commit 91e21942ab
No known key found for this signature in database
GPG Key ID: F7BDE7DD42BF366A
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import com.keylesspalace.tusky.components.compose.ComposeActivity.Companion.CAN_
import com.keylesspalace.tusky.db.AccountManager
import com.keylesspalace.tusky.entity.Status
import com.keylesspalace.tusky.entity.Status.Visibility
import com.keylesspalace.tusky.util.parseAsMastodonHtml
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.SharingStarted
@ -83,7 +84,7 @@ class QuickTootViewModel @Inject constructor(
visibility = _visibility.value,
contentWarning = inReplyTo.value?.spoilerText,
replyingStatusAuthor = inReplyTo.value?.account?.name,
replyingStatusContent = inReplyTo.value?.content,
replyingStatusContent = inReplyTo.value?.content?.parseAsMastodonHtml()?.toString(),
tootRightNow = tootRightNow
)
}