{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1772109639,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","refactor the refactor"]],"content":"Signed commit: refactor the refactor","id":"62aafbdadfd37b20f1b16742a297e2b17d59dd3d6930e64e75d0d1b6a2f04bd6","sig":"050eaca1703b73443b51fd160932a2edfa04fc0a5efd3b5bb0a1e4c8b944caa60d444b2148c07b74f4ff4a589984fa524a7109a2a89c3eddf6c937b23b18c69b"}
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1772109639,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","refactor the refactor"]],"content":"Signed commit: refactor the refactor","id":"62aafbdadfd37b20f1b16742a297e2b17d59dd3d6930e64e75d0d1b6a2f04bd6","sig":"050eaca1703b73443b51fd160932a2edfa04fc0a5efd3b5bb0a1e4c8b944caa60d444b2148c07b74f4ff4a589984fa524a7109a2a89c3eddf6c937b23b18c69b"}
// Repository is not cloned - check if API fallback might be available
if (repoCloneUrls && repoCloneUrls.length > 0) {
// We have clone URLs, so API fallback might work - mark as unknown for now
// It will be set to true if a subsequent request succeeds
state.clone.apiFallbackAvailable = null;
// Don't set state.repoNotFound or state.error yet - allow API fallback to be attempted
} else {
// No clone URLs, API fallback won't work
state.repoNotFound = true;
state.clone.apiFallbackAvailable = false;
state.error = errorText || `Repository not found. This repository exists in Nostr but hasn't been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.`;
}
} else {
// Generic 404 - repository doesn't exist
state.repoNotFound = true;
state.clone.apiFallbackAvailable = false;
state.error = `Repository not found. This repository exists in Nostr but hasn't been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.`;
}
} else if (response.status === 403) {
// Access denied - don't set state.repoNotFound, allow retry after login
// Repository is not cloned - check if API fallback might be available
if(repoCloneUrls&&repoCloneUrls.length>0){
// We have clone URLs, so API fallback might work - mark as unknown for now
state.clone.apiFallbackAvailable=null;
}else{
// No clone URLs, API fallback won't work
state.repoNotFound=true;
state.clone.apiFallbackAvailable=false;
state.error=errorMessage||`Repository not found. This repository exists in Nostr but hasn't been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.`;
}
}else{
// Generic 404 - repository doesn't exist
state.repoNotFound=true;
state.clone.apiFallbackAvailable=false;
state.error=`Repository not found. This repository exists in Nostr but hasn't been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.`;
// Repository is not cloned - check if API fallback might be available
if(repoCloneUrls&&repoCloneUrls.length>0){
// We have clone URLs, so API fallback might work - mark as unknown for now
state.clone.apiFallbackAvailable=null;
}else{
// No clone URLs, API fallback won't work
state.repoNotFound=true;
state.clone.apiFallbackAvailable=false;
}
state.error=errorMessage||'Repository not found. This repository exists in Nostr but hasn\'t been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.';
}else{
// Generic 404 - repository doesn't exist
state.repoNotFound=true;
state.clone.apiFallbackAvailable=false;
state.error=`Repository not found. This repository exists in Nostr but hasn't been provisioned on this server yet. The server will automatically provision it soon, or you can contact the server administrator.`;