mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-01 09:23:31 -06:00
[bugfix] Missing emoji urls (#3707)
* filter out emoji that are uncached when converting to frontend models * some very small fixups * remove TODO notice
This commit is contained in:
parent
1ab960bf15
commit
91cef3495d
4 changed files with 32 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue