fixed mastodon image preview

This commit is contained in:
Mariotaku Lee 2017-04-20 12:31:12 +08:00
parent f224c0f0be
commit c4161ae01f
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ fun Attachment.toParcelable(): ParcelableMedia {
"gifv" -> ParcelableMedia.Type.ANIMATED_GIF
else -> ParcelableMedia.Type.UNKNOWN
}
result.preview_url = previewUrl
result.url = url ?: remoteUrl
result.media_url = result.url
result.preview_url = previewUrl
result.page_url = textUrl
return result
}