Commit graph

1332 commits

Author SHA1 Message Date
Laura Hausmann
8e99012790
[backend] Fix build
This reverts commit 05e6e40d7e.
2024-08-07 01:05:57 +02:00
Laura Hausmann
05e6e40d7e
[backend] Code cleanup 2024-08-06 23:43:14 +02:00
Laura Hausmann
685f317190
[backend/drive] Fall back to block copy if memory region is not contiguous during ImageSharp blurhash computation 2024-08-06 23:40:20 +02:00
Laura Hausmann
786c4b0085
[backend/drive] Improve safety of ImageSharp blurhash code 2024-08-06 22:56:42 +02:00
Laura Hausmann
d371e6732c
[backend/drive] Significantly improve ImageSharp blurhash performance & memory efficiency 2024-08-06 22:43:04 +02:00
Laura Hausmann
b5a1c1ba85
[backend/drive] Significantly improve LibVips blurhash performance & memory efficiency
This commit saves ~2.5ms & ~1.4MB of heap allocations during blurhash computation using the LibVips image processor.
2024-08-06 22:25:24 +02:00
Laura Hausmann
fcc04d5fd2
[backend/drive] Improve logging for exceptions during DriveService.StoreFile 2024-08-06 14:21:32 +02:00
Laura Hausmann
ca9a2b77e9
[backend/masto-client] Respect renoteUri/replyUri on /accounts/{id}/statuses when exclude_replies or exclude_reblogs are set 2024-07-30 02:05:02 +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
f1b39981c6
[backend/csproj] Bump dotNetRdf version
This resolves a possible DoS attack vector
2024-07-28 20:54:44 +02:00
Laura Hausmann
72c0db55e3
[backend/razor] Don't render attachment count for link previews when there are no attachments 2024-07-27 17:31: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
e17cd0ac33
[backend/queue] Better explain the race condition that was recently resolved 2024-07-27 02:12:05 +02:00
Laura Hausmann
6d111e3e45
[backend] Fix typo 2024-07-27 02:06:39 +02:00
Laura Hausmann
7b415d4063
[backend/queue] Add a detailed explanation of the queue system algorithm 2024-07-27 01:54:07 +02:00
Laura Hausmann
ec6b6ee17f
[backend/drive] Limit ImageSharp memory allocation to a computed value instead of a constant one 2024-07-26 23:35:27 +02:00
Laura Hausmann
e885f753a1
[backend/queue] Code cleanup 2024-07-25 01:35:17 +02:00
Laura Hausmann
6c3f78a18b
[backend/queue] Improve shutdown process 2024-07-25 01:29:50 +02:00
Laura Hausmann
a845405c45
[backend/queue] Fix QueueService race condition (properly this time)
While the previous fix was likely enough, there was still a razor-thin theoretical race condition remaining. This commit fixes said race condition, and simplifies some if statements across the file.
2024-07-25 01:29:32 +02:00
Laura Hausmann
4690d5c1fb
[backend/database] Enable connection multiplexing by default 2024-07-25 00:14:16 +02:00
Laura Hausmann
09777fe6c4
[backend/queue] Code cleanup 2024-07-25 00:09:13 +02:00
Laura Hausmann
0f400e8023
[backend/queue] Remove cluster mode (ISH-141)
This is wontfix for now, though we might reevaluate this later.
2024-07-25 00:00:43 +02:00
Laura Hausmann
2d178e5a9a
[backend/queue] Allow configuring worker types in cluster mode (ISH-141) 2024-07-24 20:39:45 +02:00
Laura Hausmann
d7cfc24320
[backend/queue] Refactor cluster mode event methods to have less confusing method signatures 2024-07-24 18:01:26 +02:00
Laura Hausmann
ff38d35996
[sln] Bump dependency versions 2024-07-23 21:39:53 +02:00
Laura Hausmann
ccdfb75e6d
[backend/csproj] Bump ImageSharp version
3.1.5-iceshrimp (based on upstream 3.1.4) is vulnerable to a DoS attack using specially crafted GIF images. Ref: https://github.com/advisories/GHSA-63p8-c4ww-9cg7
2024-07-23 21:13:16 +02:00
Laura Hausmann
4d0ccf1e74
[backend/core] Don't queue poll expiry jobs when expiry is more than 1 year in the future 2024-07-23 20:19:33 +02:00
Laura Hausmann
d5138c21c4
[backend/razor] Fix typo 2024-07-22 22:14:35 +02:00
Laura Hausmann
0969fa5e2f
[backend/razor] Add connection status indicator to the queue dashboard overview page 2024-07-22 22:12:05 +02:00
Laura Hausmann
0a2ed5fe22
[backend/razor] Cleanup queue-index.js 2024-07-22 21:56:01 +02:00
Laura Hausmann
fd409d52d2
[backend/razor] Improve queue dash refresh handling 2024-07-22 21:50:41 +02:00
Laura Hausmann
5e10a4a8b2
[backend/razor] Make queue ordering on the queue status page consistent 2024-07-22 21:30:32 +02:00
Laura Hausmann
585e204428
[backend/razor] Drop light theme from default.css 2024-07-22 21:26:32 +02:00
Laura Hausmann
14a8cfb5f3
[backend/razor] Tweak queue status page newItem indicator style 2024-07-22 21:00:38 +02:00
Laura Hausmann
8345f35a5f
[backend/federation] Fix (de-)serialization of unordered ASCollection(Page) objects (ISH-427) 2024-07-22 18:57:15 +02:00
Laura Hausmann
b62a0ad46e
[backend/razor] Display local times when rendering timestamps on queue dashboard pages 2024-07-22 06:25:26 +02:00
Laura Hausmann
1d02ad1073
[backend] Code cleanup 2024-07-22 05:59:45 +02:00
Laura Hausmann
c7d0280eb6
[backend] Use SemaphorePlus instead of SemaphoreSlim 2024-07-22 05:59:41 +02:00
Laura Hausmann
7ea2f71abe
[backend/queue] Fix QueueService race condition causing transient queue stalls 2024-07-22 05:59:20 +02:00
Laura Hausmann
998d1a0e65
[backend/razor] Fix typo 2024-07-22 05:49:49 +02:00
Laura Hausmann
9f4f69c8fd
[backend/razor] Don't update queue dashboard if tab/window isn't visible 2024-07-22 05:45:38 +02:00
Laura Hausmann
b83b6d4fb8
[backend] Code cleanup 2024-07-22 02:28:57 +02:00
Laura Hausmann
d7164acdb0
[backend/razor] Always update queue status on the queue dashboard overview page 2024-07-22 02:26:13 +02:00
Laura Hausmann
ca1f022fc0
[backend/razor] Add overview page to queue dashboard 2024-07-21 23:51:25 +02:00
Laura Hausmann
1f5171eacc
[backend/startup] Add iceshrimp-js migration assistant 2024-07-20 17:10:33 +02:00
Laura Hausmann
c162f5b69d
[backend/csproj] Bump dotNetRdf version 2024-07-17 22:28:57 +02:00
Laura Hausmann
100d74175a
[backend/drive] Switch to ImageSharp fork supporting IsAnimated metadata property
This fixes compatibility with all animated webp/png images.
2024-07-17 21:15:59 +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