From 32f9264558f5e78362fc945c550948fa44817b52 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 7 Jan 2023 15:36:57 +0100 Subject: [PATCH] Fix a crash for long messages --- app/src/main/java/app/fedilab/android/jobs/ComposeWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);