mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 23:03:20 +02:00
Removing favicons from proxy
This commit is contained in:
@@ -289,8 +289,8 @@ private fun RelayBadges(baseNote: Note) {
|
|||||||
relaysToDisplay.forEach {
|
relaysToDisplay.forEach {
|
||||||
val url = it.removePrefix("wss://")
|
val url = it.removePrefix("wss://")
|
||||||
Box(Modifier.size(15.dp).padding(1.dp)) {
|
Box(Modifier.size(15.dp).padding(1.dp)) {
|
||||||
AsyncImageProxy(
|
AsyncImage(
|
||||||
model = ResizeImage("https://${url}/favicon.ico", 15.dp),
|
model = "https://${url}/favicon.ico",
|
||||||
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
|
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
|
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
error = BitmapPainter(RoboHashCache.get(ctx, url)),
|
error = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
|
@@ -340,8 +340,8 @@ private fun RelayBadges(baseNote: Note) {
|
|||||||
Modifier
|
Modifier
|
||||||
.size(15.dp)
|
.size(15.dp)
|
||||||
.padding(1.dp)) {
|
.padding(1.dp)) {
|
||||||
AsyncImageProxy(
|
AsyncImage(
|
||||||
model = ResizeImage("https://${url}/favicon.ico", 15.dp),
|
model = "https://${url}/favicon.ico",
|
||||||
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
|
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
|
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
error = BitmapPainter(RoboHashCache.get(ctx, url)),
|
error = BitmapPainter(RoboHashCache.get(ctx, url)),
|
||||||
|
Reference in New Issue
Block a user