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()){ if(!pollViewController.isEmpty()){
req.poll=pollViewController.getPollForRequest(); req.poll=pollViewController.getPollForRequest();
} }
if(hasSpoiler && spoilerEdit.length()>0){ if(hasSpoiler){
if(spoilerEdit.length()>0)
req.spoilerText=spoilerEdit.getText().toString(); req.spoilerText=spoilerEdit.getText().toString();
else
req.sensitive=true;
} }
if(postLang!=null){ if(postLang!=null){
req.language=postLang.locale.toLanguageTag(); req.language=postLang.locale.toLanguageTag();