From b85a9983d09a177648c9db1dff53ffccb3cef777 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:05:38 +0000 Subject: [bugfix] fix emoji recaching operations (#3167) * add test for emoji update image * update emoji recache to set the instance account id * don't refresh emoji if only not cached. in that case literally just recache * code comment * rename + move a few things * add some more code comments, and rename some functions to make logic a bit clearer * remove unnecessary nil check (the value can be nil) * comment wording * remove test data output * handle the case of caching an emoji which has been refreshed then uncached * allow overwriting on testrig storage as we do now on regular storage * fix emoji category ID not getting updated --------- Co-authored-by: tobi --- internal/cleaner/media_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cleaner/media_test.go') diff --git a/internal/cleaner/media_test.go b/internal/cleaner/media_test.go index 46c6edcd4..6e653c07c 100644 --- a/internal/cleaner/media_test.go +++ b/internal/cleaner/media_test.go @@ -386,7 +386,7 @@ func (suite *MediaTestSuite) TestUncacheAndRecache() { testStatusAttachment, testHeader, } { - processing := suite.manager.RecacheMedia(original, data) + processing := suite.manager.CacheMedia(original, data) // synchronously load the recached attachment recachedAttachment, err := processing.Load(ctx) -- cgit v1.2.3