From ac91ecc669f9b192d513a3446603f3dcf01a3a26 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 25 Apr 2020 12:41:14 +0200 Subject: [PATCH] Backport #1127 Can't delete messages on Pleroma (Masto-API) --- .../main/kotlin/org/mariotaku/twidere/task/DestroyStatusTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/task/DestroyStatusTask.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/task/DestroyStatusTask.kt index 6de4c0c15..32de65556 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/task/DestroyStatusTask.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/task/DestroyStatusTask.kt @@ -34,7 +34,7 @@ class DestroyStatusTask( when (account.type) { AccountType.MASTODON -> { val mastodon = account.newMicroBlogInstance(context, cls = Mastodon::class.java) - val result = mastodon.favouriteStatus(statusId) + val result = mastodon.fetchStatus(statusId) mastodon.deleteStatus(statusId) return result.toParcelable(account) }