mirror of
1
Fork 0
gotosocial/internal/cleaner
kim 31294f7c78
[bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129)
* refactor file handling a tiny bit

* whoops

* make processing media / emoji defers a bit clear to see that it's the "on finished processing" path

* some wording

* add some debug logging

* add mutex locks for processing remote media

* try removing freshness check

* fix derefMedia not being allocated

* fix log format string

* handle case of empty file paths (i.e. not stored)

* remove media / emoji once finished processing from dereferencer maps

* whoops, fix the cached / force checks

* move url parsing outside of 'process___Safely()' funcs to prevalidate url

* use emoji.ShortcodeDomain()

* update RefreshEmoji() to also match RefreshMedia() changes

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-07-22 18:45:48 +01:00
..
cleaner.go [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
cleaner_test.go [bugfix] process account delete side effects in serial, not in parallel (#2360) 2023-11-14 15:57:25 +01:00
emoji.go [feature] do not uncache status / emoji media if attached status is bookmarked (#2956) 2024-06-06 11:44:43 +01:00
emoji_test.go [bugfix/frontend] fix typo and other oddness in patchRemoteEmojis (#2281) 2023-10-21 17:23:05 +02:00
media.go [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
media_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00