mirror of
https://codeberg.org/tom79/Fedilab
synced 2024-12-11 10:46:01 +01:00
Fix a crash for long messages
This commit is contained in:
parent
3ea4559f69
commit
32f9264558
@ -272,7 +272,7 @@ public class ComposeWorker extends Worker {
|
|||||||
b.putSerializable(Helper.ARG_STATUS_DRAFT, dataPost.statusDraft);
|
b.putSerializable(Helper.ARG_STATUS_DRAFT, dataPost.statusDraft);
|
||||||
String err = statusResponse.errorBody().string();
|
String err = statusResponse.errorBody().string();
|
||||||
if (err.contains("{\"error\":\"")) {
|
if (err.contains("{\"error\":\"")) {
|
||||||
err = err.replaceAll("\\{\"error\":\"(.*)\"}", "$1");
|
err = err.replaceAll("\\{\"error\":\"(.*)\"\\}", "$1");
|
||||||
}
|
}
|
||||||
b.putSerializable(Helper.RECEIVE_ERROR_MESSAGE, err);
|
b.putSerializable(Helper.RECEIVE_ERROR_MESSAGE, err);
|
||||||
intentBD.putExtras(b);
|
intentBD.putExtras(b);
|
||||||
|
Loading…
Reference in New Issue
Block a user