|
|
|
@ -230,7 +230,6 @@ public class ComposeWorker extends Worker {
|
|
|
|
|
LocalBroadcastManager.getInstance(context).sendBroadcast(intentBD);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String language = sharedPreferences.getString(context.getString(R.string.SET_COMPOSE_LANGUAGE) + dataPost.userId + dataPost.instance, null);
|
|
|
|
|
if (statuses.get(i).local_only) {
|
|
|
|
|
statuses.get(i).text += " \uD83D\uDC41";
|
|
|
|
|
}
|
|
|
|
@ -258,11 +257,11 @@ public class ComposeWorker extends Worker {
|
|
|
|
|
if (dataPost.scheduledDate == null) {
|
|
|
|
|
if (dataPost.statusEditId == null) {
|
|
|
|
|
statusCall = mastodonStatusesService.createStatus(null, dataPost.token, statuses.get(i).text, attachmentIds, poll_options, poll_expire_in,
|
|
|
|
|
poll_multiple, poll_hide_totals, statuses.get(i).quote_id == null ? in_reply_to_status : null, statuses.get(i).sensitive, statuses.get(i).spoilerChecked ? statuses.get(i).spoiler_text : null, statuses.get(i).visibility.toLowerCase(), language, statuses.get(i).quote_id, statuses.get(i).content_type);
|
|
|
|
|
poll_multiple, poll_hide_totals, statuses.get(i).quote_id == null ? in_reply_to_status : null, statuses.get(i).sensitive, statuses.get(i).spoilerChecked ? statuses.get(i).spoiler_text : null, statuses.get(i).visibility.toLowerCase(), statuses.get(i).language, statuses.get(i).quote_id, statuses.get(i).content_type);
|
|
|
|
|
} else { //Status is edited
|
|
|
|
|
statusCall = mastodonStatusesService.updateStatus(null, dataPost.token, dataPost.statusEditId, statuses.get(i).text, attachmentIds, poll_options, poll_expire_in,
|
|
|
|
|
poll_multiple, poll_hide_totals, statuses.get(i).quote_id == null ? in_reply_to_status : null, statuses.get(i).sensitive,
|
|
|
|
|
statuses.get(i).spoilerChecked ? statuses.get(i).spoiler_text : null, statuses.get(i).visibility.toLowerCase(), language,
|
|
|
|
|
statuses.get(i).spoilerChecked ? statuses.get(i).spoiler_text : null, statuses.get(i).visibility.toLowerCase(), statuses.get(i).language,
|
|
|
|
|
media_edit_id, media_edit_description, media_edit_focus);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|