mirror of
1
Fork 0
gotosocial/internal/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
..
ffmpeg update go-ffmpreg to v0.2.3 (#3120) 2024-07-20 14:14:58 +01:00
test [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
ffmpeg.go [feature] add flac support (#3121) 2024-07-21 14:42:51 +02:00
manager.go [feature] add flac support (#3121) 2024-07-21 14:42:51 +02:00
manager_test.go [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
media_test.go [feature] Add experimental `instance-federation-spam-filter` option (#2685) 2024-02-27 12:22:05 +00:00
processingemoji.go [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
processingmedia.go [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
refetch.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
refetch_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
types.go [feature] more filetype support! (#3107) 2024-07-15 15:24:53 +01:00
util.go [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00