Добавить лицензию 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
+2 -2
View File
@@ -30,7 +30,7 @@ import { t } from '../../i18n/index.js';
import { 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';
import { ISLAND_COLORS, layoutIslands, tieWeight } from './communities.js';
const NODE_R = { focus: 30, 1: 22, 2: 15, 3: 11 };
@@ -633,7 +633,7 @@ async function avatarUrlFromServer(node) {
const authorLogin = String(node?.login || node?.id || '').trim();
if (String(raw.ar || '').trim() || !pr || !authorLogin) return '';
try {
return avatarR2Url(pr);
return await resolvePublicFileUrl({ pr, authorLogin });
} catch {
return '';
}