mirror of
1
Fork 0
gotosocial/internal
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
..
ap [bugfix] Deref stats async, serve stub collections if handshaking (#2990) 2024-06-11 11:54:59 +02:00
api [feature] add flac support (#3121) 2024-07-21 14:42:51 +02:00
cache [chore] Add interaction policy gtsmodels (#3075) 2024-07-11 15:44:29 +01:00
cleaner [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
config [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
db [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
email [bugfix] add Date and Message-ID headers for email (#3031) 2024-06-22 23:36:30 +02:00
federation [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
filter [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
gtscontext [bugfix] httpclient not signing subsequent redirect requests (#2798) 2024-04-02 13:12:26 +02:00
gtserror [experiment] add alternative wasm sqlite3 implementation available via build-tag (#2863) 2024-05-27 17:46:15 +02:00
gtsmodel [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
headerfilter [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
httpclient [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
id [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
iotools [performance] update storage backend and make use of seek syscall when available (#2924) 2024-05-22 11:46:24 +02:00
language [feature] Set/show instance language(s); show post language on frontend (#2362) 2023-11-17 11:35:28 +01:00
log [chore] Log less output on failed test (#2804) 2024-04-04 16:42:42 +01:00
media [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
messages [feature] add worker task serialization logic (#2989) 2024-06-20 17:06:20 +00:00
metrics [chore] Update usage of OTEL libraries (#2725) 2024-03-11 15:34:34 +01:00
middleware [feature] Set some security related headers (#3065) 2024-07-04 10:07:02 +02:00
oauth [chore] Upgrade our Go version to 1.22 (#2862) 2024-04-26 10:40:29 +02:00
oidc [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging [bugfix] flaky paging test (#2888) 2024-05-01 13:29:42 +02:00
processing [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
queue [performance] update go-structr and go-mutexes with memory usage improvements (#2909) 2024-05-13 08:05:46 +00:00
regexes [bugfix] use start + end line in regex when validating emoji via API (#2671) 2024-02-20 11:46:04 +01:00
router [chore] improved startup / shutdown (#2925) 2024-05-29 13:21:04 +02:00
scheduler [feature] add support for polls + receiving federated status edits (#2330) 2023-11-08 14:32:17 +00:00
state [bugfix] Lock when checking/creating notifs to avoid race (#2890) 2024-05-02 13:43:00 +01:00
storage [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +01:00
stream [feature] Implement filters_changed stream event (#2972) 2024-06-07 10:51:13 +02:00
text [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
timeline [feature/frontend] Add player for audio files; use thumbnail for `poster` (#3099) 2024-07-15 10:47:57 +01:00
tracing [chore] Update usage of OTEL libraries (#2725) 2024-03-11 15:34:34 +01:00
trans [feature] New user sign-up via web page (#2796) 2024-04-11 11:45:53 +02:00
transport [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
typeutils [feature] add flac support (#3121) 2024-07-21 14:42:51 +02:00
uris [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
util [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
validate [feature] Implement Filter API v2 (#2936) 2024-05-31 12:55:56 +02:00
web [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
workers [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00