mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-01 23:04:13 +02:00
cleanup
This commit is contained in:
@@ -333,24 +333,17 @@ fun InnerRenderGalleryThumb(
|
|||||||
contentAlignment = BottomStart,
|
contentAlignment = BottomStart,
|
||||||
) {
|
) {
|
||||||
card.image?.let {
|
card.image?.let {
|
||||||
var blurHash: String? = null
|
var blurHash = (note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash()
|
||||||
if ((note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() != null) {
|
|
||||||
blurHash = (note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash()
|
|
||||||
}
|
|
||||||
|
|
||||||
var fullUrl = it
|
|
||||||
var description = (note.associatedNote?.event as ProfileGalleryEntryEvent).content
|
var description = (note.associatedNote?.event as ProfileGalleryEntryEvent).content
|
||||||
var hash = (note.associatedNote?.event as ProfileGalleryEntryEvent).hash()
|
// var hash = (note.associatedNote?.event as ProfileGalleryEntryEvent).hash()
|
||||||
var dimensions = (note.associatedNote?.event as ProfileGalleryEntryEvent).dimensions()
|
var dimensions = (note.associatedNote?.event as ProfileGalleryEntryEvent).dimensions()
|
||||||
var mimeType = (note.associatedNote?.event as ProfileGalleryEntryEvent).mimeType()
|
var mimeType = (note.associatedNote?.event as ProfileGalleryEntryEvent).mimeType()
|
||||||
|
|
||||||
// var content = Im(null, "10x10", blurhash = blurhash)
|
|
||||||
var content: BaseMediaContent? = null
|
var content: BaseMediaContent? = null
|
||||||
|
|
||||||
if (isVideoUrl(it)) {
|
if (isVideoUrl(it)) {
|
||||||
content =
|
content =
|
||||||
MediaUrlVideo(
|
MediaUrlVideo(
|
||||||
url = fullUrl,
|
url = it,
|
||||||
description = description,
|
description = description,
|
||||||
hash = null,
|
hash = null,
|
||||||
blurhash = blurHash,
|
blurhash = blurHash,
|
||||||
@@ -361,7 +354,7 @@ fun InnerRenderGalleryThumb(
|
|||||||
} else {
|
} else {
|
||||||
content =
|
content =
|
||||||
MediaUrlImage(
|
MediaUrlImage(
|
||||||
url = fullUrl,
|
url = it,
|
||||||
description = description,
|
description = description,
|
||||||
hash = null, // We don't want to show the hash banner here
|
hash = null, // We don't want to show the hash banner here
|
||||||
blurhash = blurHash,
|
blurhash = blurHash,
|
||||||
|
Reference in New Issue
Block a user