Merge pull request #1273 from Xefir/1127

Backport #1127 Can't delete messages on Pleroma (Masto-API)
This commit is contained in:
Tlaster 2020-04-26 11:27:45 +08:00 committed by GitHub
commit 59e3637205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class DestroyStatusTask(
when (account.type) { when (account.type) {
AccountType.MASTODON -> { AccountType.MASTODON -> {
val mastodon = account.newMicroBlogInstance(context, cls = Mastodon::class.java) val mastodon = account.newMicroBlogInstance(context, cls = Mastodon::class.java)
val result = mastodon.favouriteStatus(statusId) val result = mastodon.fetchStatus(statusId)
mastodon.deleteStatus(statusId) mastodon.deleteStatus(statusId)
return result.toParcelable(account) return result.toParcelable(account)
} }