Добавить лицензию CC0 1.0

This commit is contained in:
AidarKC
2026-11-16 23:50:28 +03:00
parent 548160f7f8
commit c477560632
39 changed files with 901 additions and 138 deletions
@@ -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 '';
}