diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 7fb4c5175..d4606d6ca 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -547,7 +547,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr @Override public boolean onOptionsItemSelected(MenuItem item){ if(item.getItemId()==R.id.publish){ - if(GlobalUserPreferences.altTextReminders) + if(GlobalUserPreferences.altTextReminders && editingStatus==null) checkAltTextsAndPublish(); else publish(); diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java index 8b889875d..08b95207d 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposeMediaViewController.java @@ -560,7 +560,7 @@ public class ComposeMediaViewController{ public boolean areAllAttachmentsImages(){ for(DraftMediaAttachment att:attachments){ - if(!att.mimeType.startsWith("image/")) + if((att.mimeType==null && att.serverAttachment.type==Attachment.Type.IMAGE) || !att.mimeType.startsWith("image/")) return false; } return true;