gotosocial/internal/processing/media
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
..
create.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
delete.go [performance] update storage backend and make use of seek syscall when available (#2924) 2024-05-22 11:46:24 +02:00
getemoji.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
getemoji_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
getfile.go [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
getfile_test.go [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
getmedia.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
media.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
media_test.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
profile.go [feature] Implement profile API (#2926) 2024-05-29 12:57:44 +02:00
unattach.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
unattach_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
update.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
util.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00