瀏覽代碼

Allows for missing avatar urls

main
Eric Amodio 2 年之前
父節點
當前提交
51740812b6
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      src/avatars.ts
  2. +1
    -1
      src/git/models/author.ts

+ 1
- 1
src/avatars.ts 查看文件

@ -194,7 +194,7 @@ async function getAvatarUriFromRemoteProvider(
account = await remote?.provider.getAccountForCommit(repoPathOrCommit.ref, { avatarSize: size });
}
}
if (account == null) {
if (account?.avatarUrl == null) {
// If we have no account assume that won't change (without a reset), so set the timestamp to "never expire"
avatar.uri = undefined;
avatar.timestamp = maxSmallIntegerV8;

+ 1
- 1
src/git/models/author.ts 查看文件

@ -4,5 +4,5 @@ export interface Account {
provider: RemoteProviderReference;
name: string | undefined;
email: string | undefined;
avatarUrl: string;
avatarUrl: string | undefined;
}

Loading…
取消
儲存