keep cached avatar&banner when refresh fails to get new values (#13145)

* keep cached avatar&banner when refresh fails to get new values

when the remote explicitly tells us a user image is gone, we remove
our cached value, but if we fail to get the image, we keep whatever
value we already have

this should minimise the problem of avatars randomly disappearing

* autogen bits

* pnpm run build-misskey-js-with-types

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
Gianni Ceccarelli
2024-02-04 12:03:49 +00:00
committed by GitHub
parent bafef1f8b4
commit dabf1867fd
6 changed files with 31 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.716Z
* generatedAt: 2024-02-04T11:51:13.598Z
*/
import type { SwitchCaseResponseType } from '../api.js';

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.712Z
* generatedAt: 2024-02-04T11:51:13.595Z
*/
import type {

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.709Z
* generatedAt: 2024-02-04T11:51:13.593Z
*/
import { operations } from './types.js';

View File

@@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.708Z
* generatedAt: 2024-02-04T11:51:13.592Z
*/
import { components } from './types.js';

View File

@@ -3,7 +3,7 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.529Z
* generatedAt: 2024-02-04T11:51:13.473Z
*/
/**