From 91cef3495d40d2af06b448b5871b1a8101fd6515 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:52:03 +0000 Subject: [bugfix] Missing emoji urls (#3707) * filter out emoji that are uncached when converting to frontend models * some very small fixups * remove TODO notice --- internal/cleaner/emoji.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/cleaner') diff --git a/internal/cleaner/emoji.go b/internal/cleaner/emoji.go index 6cf194e40..05588ccb2 100644 --- a/internal/cleaner/emoji.go +++ b/internal/cleaner/emoji.go @@ -104,13 +104,14 @@ func (e *Emoji) UncacheRemote(ctx context.Context, olderThan time.Time) (int, er return total, gtserror.Newf("error getting remote emoji: %w", err) } - // If no emojis / same group is returned, we reached the end. + // If no emojis / same group is + // returned, we reached the end. if len(emojis) == 0 || olderThan.Equal(emojis[len(emojis)-1].CreatedAt) { break } - // Use last created-at as the next 'olderThan' value. + // Use last createdAt as next 'olderThan' value. olderThan = emojis[len(emojis)-1].CreatedAt for _, emoji := range emojis { -- cgit v1.2.3