Pārlūkot izejas kodu

Allows for missing avatar urls

main
Eric Amodio pirms 2 gadiem
vecāks
revīzija
51740812b6
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      src/avatars.ts
  2. +1
    -1
      src/git/models/author.ts

+ 1
- 1
src/avatars.ts Parādīt failu

@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt