From d7b23f736a2f101f7f3ae186c3dcc89422f9e114 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 27 Dec 2024 12:52:42 +0000 Subject: [PATCH] =?UTF-8?q?social-app=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- social-app.-.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/social-app.-.md b/social-app.-.md index 290c961..00a0361 100644 --- a/social-app.-.md +++ b/social-app.-.md @@ -25,4 +25,19 @@ https://cdn.bsky.app/img/avatar_thumbnail/plain/${did}/${rkey}@jpeg ですが、self-hostでは`BSKY_BLOB_CACHE_LOC=/data`を使用しますので、画像変換が行われず、表示されません。 -これは問題でsocial-appを改造してもiosアプリでは表示されないということです。 \ No newline at end of file +これは問題でsocial-appを改造してもiosアプリでは表示されないということです。 + +webは以下の変更を行うと表示されます。 + +> repos/social-app/src/view/com/util/UserAvatar.tsx + +```ts +function hackModifyThumbnailPath(uri: string, isEnabled: boolean): string { + return isEnabled +// ? uri.replace('/img/avatar/plain/', '/img/avatar_thumbnail/plain/') + ? uri.replace('https://cdn.bsky.app/img/avatar/plain/', 'https://bsky.syu.is/img/avatar/plain/') + : uri +} + +source={{ uri: hackModifyThumbnailPath(avatar, 1 > 0), }} +``` \ No newline at end of file