diff --git a/app/src/main/java/app/fedilab/android/jobs/ComposeWorker.java b/app/src/main/java/app/fedilab/android/jobs/ComposeWorker.java index f66b8ca3b..3e9f97be6 100644 --- a/app/src/main/java/app/fedilab/android/jobs/ComposeWorker.java +++ b/app/src/main/java/app/fedilab/android/jobs/ComposeWorker.java @@ -272,7 +272,7 @@ public class ComposeWorker extends Worker { b.putSerializable(Helper.ARG_STATUS_DRAFT, dataPost.statusDraft); String err = statusResponse.errorBody().string(); if (err.contains("{\"error\":\"")) { - err = err.replaceAll("\\{\"error\":\"(.*)\"}", "$1"); + err = err.replaceAll("\\{\"error\":\"(.*)\"\\}", "$1"); } b.putSerializable(Helper.RECEIVE_ERROR_MESSAGE, err); intentBD.putExtras(b);