summaryrefslogtreecommitdiff
path: root/internal/processing/media/getfile.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-03 17:05:38 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-03 19:05:38 +0200
commitb85a9983d09a177648c9db1dff53ffccb3cef777 (patch)
treeacdef8a405d22901cb77665da4dc54af33b4db11 /internal/processing/media/getfile.go
parent[chore] Add `media-ffmpeg-pool-size` config var (#3164) (diff)
downloadgotosocial-b85a9983d09a177648c9db1dff53ffccb3cef777.tar.xz
[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 <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/processing/media/getfile.go')
-rw-r--r--internal/processing/media/getfile.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/processing/media/getfile.go b/internal/processing/media/getfile.go
index 43de718f3..6962601f2 100644
--- a/internal/processing/media/getfile.go
+++ b/internal/processing/media/getfile.go
@@ -246,11 +246,9 @@ func (p *Processor) getEmojiContent(
// Ensure that stored emoji is cached.
// (this handles local emoji / recaches).
- emoji, err = p.federator.RefreshEmoji(
+ emoji, err = p.federator.RecacheEmoji(
ctx,
emoji,
- media.AdditionalEmojiInfo{},
- false,
)
if err != nil {
err := gtserror.Newf("error recaching emoji: %w", err)