This commit is contained in:
Grishka 2024-06-05 04:28:50 +03:00
parent b2c797fb46
commit 1b4afe7ba9
1 changed files with 5 additions and 2 deletions

View File

@ -720,8 +720,11 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
if(!pollViewController.isEmpty()){
req.poll=pollViewController.getPollForRequest();
}
if(hasSpoiler && spoilerEdit.length()>0){
req.spoilerText=spoilerEdit.getText().toString();
if(hasSpoiler){
if(spoilerEdit.length()>0)
req.spoilerText=spoilerEdit.getText().toString();
else
req.sensitive=true;
}
if(postLang!=null){
req.language=postLang.locale.toLanguageTag();