Browse Source

Allows for missing avatar urls

main
Eric Amodio 2 years ago
parent
commit
51740812b6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/avatars.ts
  2. +1
    -1
      src/git/models/author.ts

+ 1
- 1
src/avatars.ts View File

@ -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 View File

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

Loading…
Cancel
Save