Skip to content

Commit

Permalink
Merge pull request #1291 from Linkid/fix/mastodon_follow_remote
Browse files Browse the repository at this point in the history
Mastodon: remove the follows endpoint
  • Loading branch information
Tedko authored May 1, 2020
2 parents 567dce9 + d29e102 commit 3cafdac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ class FriendshipPromises private constructor(val application: Application) {
}
AccountType.MASTODON -> {
val mastodon = account.newMicroBlogInstance(application, Mastodon::class.java)
if (account.key.host != userKey.host) {
if (screenName == null)
throw MicroBlogException("Screen name required to follow remote user")
return@then mastodon.followRemoteUser("$screenName@${userKey.host}")
.toParcelable(account)
}
mastodon.followUser(userKey.id)
return@then mastodon.getAccount(userKey.id).toParcelable(account)
}
Expand Down

0 comments on commit 3cafdac

Please sign in to comment.