mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
fix: add referrerPolicy for Google profile images
This commit is contained in:
parent
83d6b735fa
commit
54568a62e0
2 changed files with 7 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ const UserAvatar: FC<AuthorMetadata> = ({ displayName, avatarUrl }) => {
|
||||||
src={avatarUrl}
|
src={avatarUrl}
|
||||||
alt={displayName || "User"}
|
alt={displayName || "User"}
|
||||||
className="size-8 rounded-full object-cover"
|
className="size-8 rounded-full object-cover"
|
||||||
|
referrerPolicy="no-referrer"
|
||||||
onError={() => setHasError(true)}
|
onError={() => setHasError(true)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,12 @@ function UserAvatar({
|
||||||
}) {
|
}) {
|
||||||
if (avatarUrl) {
|
if (avatarUrl) {
|
||||||
return (
|
return (
|
||||||
<img src={avatarUrl} alt="User avatar" className="h-8 w-8 shrink-0 rounded-lg object-cover" />
|
<img
|
||||||
|
src={avatarUrl}
|
||||||
|
alt="User avatar"
|
||||||
|
className="h-8 w-8 shrink-0 rounded-lg object-cover"
|
||||||
|
referrerPolicy="no-referrer"
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue