From 0ddde62202754b1a547b65c390b496531ab94341 Mon Sep 17 00:00:00 2001 From: pandasoft0 Date: Tue, 11 Jun 2019 17:44:02 +0300 Subject: [PATCH] Disable sensitive media send if medias list is empty (#1309) --- app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 2cd08828..be8d67a6 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -992,7 +992,7 @@ public final class ComposeActivity } Intent sendIntent = SendTootService.sendTootIntent(this, content, spoilerText, - visibility, sensitive, mediaIds, mediaUris, mediaDescriptions, inReplyToId, + visibility, !mediaUris.isEmpty() && sensitive, mediaIds, mediaUris, mediaDescriptions, inReplyToId, getIntent().getStringExtra(REPLYING_STATUS_CONTENT_EXTRA), getIntent().getStringExtra(REPLYING_STATUS_AUTHOR_USERNAME_EXTRA), getIntent().getStringExtra(SAVED_JSON_URLS_EXTRA),