fix hugo callback

This commit is contained in:
2025-06-19 14:48:54 +09:00
parent 293421b7a5
commit 5fac689f98
15 changed files with 832 additions and 138 deletions

View File

@ -33,6 +33,12 @@ async function getDid(handle) {
// DIDからプロフィール情報を取得
async function getProfile(did, handle) {
// Skip test DIDs
if (did && did.includes('test-')) {
logger.log('Skipping profile fetch for test DID:', did)
return null
}
try {
// Determine which public API to use based on handle
const pds = await getPdsFromHandle(handle)
@ -81,6 +87,11 @@ async function fetchFreshAvatar(handle, did) {
// プロフィール取得
const profile = await getProfile(actualDid, handle)
if (!profile) {
// Test DID or profile fetch failed
return null
}
const avatarUrl = profile.avatar || null
// キャッシュに保存