removed buggy mention opening code

This commit is contained in:
Mariotaku Lee 2017-04-25 17:28:38 +08:00
parent 61f532500b
commit c08c3a31e5
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 0 additions and 9 deletions

View File

@ -1399,15 +1399,6 @@ class StatusFragment : BaseFragment(), LoaderCallbacks<SingleResponse<Parcelable
expandOrOpenMedia(current)
return true
}
when (type) {
TwidereLinkify.LINK_TYPE_MENTION -> {
val status = adapter.getStatus(position)
val userKey = MastodonPlaceholderUserKey(status.user_key.host ?: accountKey?.host)
IntentUtils.openUserProfile(context, accountKey, userKey, link, null,
preferences[newDocumentApiKey], Referral.USER_MENTION, null)
return true
}
}
return super.onLinkClick(link, orig, accountKey, extraId, type, sensitive, start, end)
}