From 9c4898117e0d7a546d43d5ee92a7367d3ac337be Mon Sep 17 00:00:00 2001 From: Levi Bard Date: Tue, 17 Mar 2020 19:46:32 +0100 Subject: [PATCH] Ensure media are marked sensitive any time there's a content warning (#1728) Addresses the most critical part of #1725, and may also apply to #1721 --- .../keylesspalace/tusky/components/compose/ComposeViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt index b8ade248a..fa6647984 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt @@ -249,7 +249,7 @@ class ComposeViewModel content, spoilerText, statusVisibility.value!!.serverString(), - mediaUris.isNotEmpty() && markMediaAsSensitive.value!!, + mediaUris.isNotEmpty() && (markMediaAsSensitive.value!! || showContentWarning.value!!), mediaIds, mediaUris.map { it.toString() }, mediaDescriptions,