This commit is contained in:
Mariotaku Lee 2018-05-25 21:07:28 +08:00
parent 77b70b03dd
commit fe55b7a3ac
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 2 additions and 3 deletions

View File

@ -83,7 +83,7 @@ subprojects {
ArchPaging : '1.0.0',
Room : '1.1.0',
ConstraintLayout : '1.1.0',
MessageBubbleView : '2.1',
MessageBubbleView : '2.4',
WorkManager : '1.0.0-alpha01',
]

View File

@ -32,7 +32,6 @@ import org.mariotaku.microblog.library.MicroBlogException
import org.mariotaku.microblog.library.model.microblog.ErrorInfo
import org.mariotaku.twidere.R
import org.mariotaku.twidere.annotation.AccountType
import org.mariotaku.twidere.extension.get
import org.mariotaku.twidere.extension.model.api.mastodon.toParcelable
import org.mariotaku.twidere.extension.model.api.toParcelable
import org.mariotaku.twidere.extension.model.newMicroBlogInstance
@ -62,7 +61,7 @@ class StatusPromises private constructor(private val application: Application) {
when (account.type) {
AccountType.MASTODON -> {
val mastodon = account.newMicroBlogInstance(application, cls = Mastodon::class.java)
val result = mastodon.favouriteStatus(id)
val result = mastodon.fetchStatus(id)
mastodon.deleteStatus(id)
return@accountTask result.toParcelable(account)
}