Laura Hausmann
fcc04d5fd2
[backend/drive] Improve logging for exceptions during DriveService.StoreFile
2024-08-06 14:21:32 +02:00
Laura Hausmann
a8a53542ce
[backend] Code cleanup
2024-07-29 00:51:36 +02:00
Laura Hausmann
7e4282b386
[backend/drive] Switch to stream processing for remote media
...
This makes sure that files larger than the configured maximum remote media cache size are not loaded into memory (if the size is known), or are only loaded into memory until the configured maximum size before getting discarded (if the size is not known)
2024-07-28 23:32:04 +02:00
Laura Hausmann
15d955c478
[backend/core] Limit HttpClient buffer size to 1MiB, except DriveService from this policy (until proper limits are in place there)
2024-07-28 22:06:33 +02:00
Laura Hausmann
828b742a3f
[backend/drive] Don't attempt to clone remote files, improve deduplication handling
2024-07-27 16:04:02 +02:00
Laura Hausmann
12cbc40f99
[backend/drive] Add flag that skips image processing; skip image processing for emojis by default
2024-07-17 17:49:43 +02:00
Laura Hausmann
0668c6b360
[backend/drive] Improve media filename handling
...
This commit adds support for remote Content-Disposition headers giving information on attachment filenames, as well as providing this information when serving locally stored files. It also passes on any filename metadata to the object storage provider, if configured as the storage backend.
2024-07-09 23:44:34 +02:00
Kopper
ab3f3783e8
[backend/api] Create endpoint to clone remote emoji
2024-07-02 23:00:01 +02:00
Laura Hausmann
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370)
2024-06-17 17:25:29 +02:00
Laura Hausmann
aa8e3f32c5
[backend/drive] Fix thumbnail url for deduplicated files
2024-05-23 15:15:43 +02:00
Laura Hausmann
9d0ee19922
[backend/drive] Don't store attachments if the download isn't successful
2024-05-23 00:23:54 +02:00
Laura Hausmann
2108f91bcf
[backend/drive] Store attachments as links if they can't be fetched for caching / further processing
2024-05-16 18:43:24 +02:00
Laura Hausmann
b76f154f50
[backend/drive] Don't hash files larger than the configured max cache size
2024-05-16 18:25:33 +02:00
Laura Hausmann
d7d7b7d2e3
[backend/drive] Improve error handling during DriveService.StoreFile
2024-05-14 20:09:14 +02:00
Laura Hausmann
16fdc48800
[backend/drive] Set content-type when uploading media to object storage
2024-05-07 02:57:19 +02:00
Laura Hausmann
744a01d138
[backend/drive] Add several media processing configuration options, replacing constants & assumptions
2024-05-02 19:13:58 +02:00
Laura Hausmann
9a662f2bea
[backend/drive] Fix DriveService.StoreFile edge cases and make the code flow more clear/readable
2024-05-02 19:13:20 +02:00
Laura Hausmann
a2077244f8
[backend/drive] Make image processor pluggable
2024-05-01 21:44:49 +02:00
Laura Hausmann
eab5e02b70
[backend/drive] Better error handling & logging
2024-05-01 01:44:52 +02:00
Laura Hausmann
7976854190
[backend/drive] Correctly set thumbnail & webpublicUrl when using the local storage provider
2024-05-01 01:21:08 +02:00
Laura Hausmann
facc7eb337
[backend/drive] Use libvips instead of imagesharp for most of the image processing pipeline
2024-05-01 01:21:08 +02:00
Laura Hausmann
d56eda8464
[backend/drive] Fix ImageSharp memory leak, improve image processing memory footprint, don't generate thumbnails for animated images
2024-04-30 20:40:46 +02:00
Laura Hausmann
dd062c6752
[backend/drive] Fix logExisting oversight causing uris not to be logged in all cases
2024-04-30 17:03:04 +02:00
Laura Hausmann
363b0c930c
[backend/core] Add Guid.ToStringLower() extension method
2024-04-25 18:26:42 +02:00
Laura Hausmann
adbee189af
[backend/configuration] Rename StorageSection.Mode to StorageSection.Provider
...
The old property remains for configuration backwards compatibility only. Trying to access it throws a compile-time error.
2024-04-22 23:26:29 +02:00
Laura Hausmann
cabe5d52e7
[backend/drive] Inhibit logging of unchanged files on user/note update (ISH-240)
2024-03-29 18:25:55 +01:00
Laura Hausmann
cdadb63e19
[backend/drive] Handle alt text updates (ISH-195)
2024-03-28 14:57:49 +01:00
Laura Hausmann
9698e3d36d
[backend/core] Replace redis-based queue system with a postgres-based one (ISH-212)
2024-03-24 00:17:28 +01:00
Laura Hausmann
605c636e1e
[backend/drive] Also strip exif/xmp from thumbnail
2024-03-07 01:19:15 +01:00
Laura Hausmann
f8a5d7c06c
[backend/drive] Set correct orientation for image processing (ISH-132)
2024-03-07 01:19:03 +01:00
Laura Hausmann
4c3a140e9f
[backend/masto-client] Fix public media url handling
2024-03-01 18:44:03 +01:00
Laura Hausmann
b4e3fdc898
[backend/core] Improve image processing performance
2024-02-28 22:39:51 +01:00
Laura Hausmann
f073018e95
[backend/federation] Fix race condition when updating a user during a request
2024-02-17 21:06:23 +01:00
Laura Hausmann
d4e1d92771
[backend] Code cleanup: switch to BSD braces style, tweak code style
2024-02-17 02:31:00 +01:00
Laura Hausmann
11caf32ebb
[backend/services] Media cleanup cron task (ISH-66, ISH-27)
2024-02-16 01:21:04 +01:00
Laura Hausmann
424d3d3298
[backend/services] DriveFile.Properties has a database-side default
2024-02-15 00:11:06 +01:00
Laura Hausmann
fc0f40f8ce
[backend/drive] Add basic image processing & thumbnail generation (ISH-63, ISH-64)
2024-02-14 17:25:32 +01:00
Laura Hausmann
b67dd173f4
[backend/federation] Federate alt text (ISH-55)
2024-02-13 03:07:02 +01:00
Laura Hausmann
a1c23a7d29
[backend/masto-client] Add media upload (ISH-58)
2024-02-13 02:46:40 +01:00
Laura Hausmann
589063f36b
[backend/drive] Calculate blurhash for images (ISH-54)
2024-02-13 02:08:18 +01:00
Laura Hausmann
16f46dbe43
[backend/federation] Handle note attachments (ISH-48)
2024-02-13 00:13:18 +01:00
Laura Hausmann
8250ef58d3
[backend/drive] Restrict non-browser-safe MIME types to application/octet-stream (ISH-36)
2024-02-10 17:21:22 +01:00
Laura Hausmann
920997ec41
[backend/federation] Avatar & banner support (ISH-8)
2024-02-09 23:22:46 +01:00
Laura Hausmann
8f948ab130
[backend/drive] Implement basic drive support (ISH-9)
2024-02-09 19:41:46 +01:00