fix(admin-web): set no-referrer policy on cross-origin platform avatars

Platforms like Bilibili refuse to serve avatar images when the
Referer points at our admin origin, so the article publish status
panel and the media account cards now request avatars with a
no-referrer policy to stop the placeholder from showing instead of
the user's real avatar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 01:00:04 +08:00
parent 3a367e7967
commit 93ff3c773f
2 changed files with 2 additions and 1 deletions
@@ -267,6 +267,7 @@ function getAccountInitial(accountName: string): string {
:src="entry.avatarUrl"
:alt="entry.accountName"
class="article-publish-status__account-avatar-img"
referrerpolicy="no-referrer"
/>
<template v-else-if="getAccountInitial(entry.accountName)">
{{ getAccountInitial(entry.accountName) }}