SHA256
Добавить лицензию CC0 1.0
This commit is contained in:
@@ -18,7 +18,7 @@ import { t } from '../../i18n/index.js';
|
||||
import { renderUserAvatar, buildAvatarInitials } from '../../components/avatar-image.js';
|
||||
import { state } from '../../state.js';
|
||||
import { buildArweaveDataUrl } from '../../services/arweave-file-service.js';
|
||||
import { avatarR2Url } from '../../services/public-file-service.js';
|
||||
import { resolvePublicFileUrl } from '../../services/public-file-service.js';
|
||||
|
||||
const SVGNS = 'http://www.w3.org/2000/svg';
|
||||
|
||||
@@ -158,7 +158,7 @@ async function resolveServerAvatarPhotoSrc(src) {
|
||||
const authorLogin = String(src?.login || src?.id || '').trim();
|
||||
if (txId || !pr || !authorLogin) return '';
|
||||
try {
|
||||
return avatarR2Url(pr);
|
||||
return await resolvePublicFileUrl({ pr, authorLogin });
|
||||
} catch {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user