Disable sensitive media send if medias list is empty (#1309)

This commit is contained in:
pandasoft0 2019-06-11 17:44:02 +03:00 committed by Konrad Pozniak
parent ce501f24e6
commit 0ddde62202

View file

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