Cache own Nostr avatar image

This commit is contained in:
2026-04-21 15:17:04 +04:00
parent b23d54d74f
commit a384e83dd0
2 changed files with 66 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import UserMenu from '#components/user-menu';
import SearchBox from '#components/search-box';
import CategoryChips from '#components/category-chips';
import { and } from 'ember-truth-helpers';
import cachedImage from '../modifiers/cached-image';
export default class AppHeaderComponent extends Component {
@service storage;
@@ -71,7 +72,7 @@ export default class AppHeaderComponent extends Component {
(and this.nostrAuth.isConnected this.nostrData.profile.picture)
}}
<img
src={{this.nostrData.profile.picture}}
{{cachedImage this.nostrData.profile.picture}}
class="user-avatar"
alt="User Avatar"
/>