Laura Hausmann
173fbfb835
[backend/asp] Return error responses as HTML/XML/JSON depending on accept header
2024-08-16 01:00:43 +02:00
Laura Hausmann
8889510811
[backend/drive] Fix ImageSharp image scaling for horizontal images
2024-08-14 21:15:33 +02:00
Laura Hausmann
1637064d60
[backend/federation] Deserialize HostMetaResponse as an object when content type is application/xrd+xml
2024-08-14 20:23:53 +02:00
Laura Hausmann
192f3f0312
[backend/federation] Reuse XmlSerializer in WebFingerService
2024-08-14 20:16:28 +02:00
Laura Hausmann
28f89f8a18
[backend/federation] Use XmlReader for deserializing untrusted XML input
2024-08-14 16:24:16 +02:00
Laura Hausmann
91a7b2554f
[backend/logging] Add LOG_TIMESTAMPS environment variable
2024-08-14 04:40:55 +02:00
Laura Hausmann
fbebc91983
[backend/logging] Allow colorful systemd output
...
Since journalctl strips them by default, there's no reason not to include them for compatibility reasons. This change also simplifies the custom logger code greatly.
2024-08-14 04:25:11 +02:00
Laura Hausmann
8267bc06de
[backend] Code cleanup
2024-08-14 03:53:15 +02:00
Laura Hausmann
4f98fa8461
[backend/federation] Fix possibly unbounded UserResolver recursion
2024-08-14 03:44:14 +02:00
Laura Hausmann
92f957a536
[backend/federation] Use content negotiation for host-meta responses
2024-08-14 03:23:25 +02:00
Laura Hausmann
b37f02846b
[backend/federation] Add support for returning xrd+xml WebFinger responses for local users
2024-08-14 02:01:56 +02:00
Laura Hausmann
c3eacb34c2
[backend/federation] Add support for hubzilla's hashtag formatting
...
A bit strange but here we are
2024-08-14 02:01:56 +02:00
Laura Hausmann
14720808db
[backend/federation] Add support for deserializing xrd+xml WebFinger responses (ISH-456)
...
This fixes federation with Hubzilla.
2024-08-14 02:01:56 +02:00
Laura Hausmann
c86b2e192a
[backend/federation] Improve WebFinger host-meta handling
2024-08-14 01:41:29 +02:00
Laura Hausmann
b69f92dbdc
[backend/core] Stricter local user username validation
2024-08-14 00:40:58 +02:00
Laura Hausmann
d786d8976d
[backend/federation] Add manuallyApprovesFollowers to as-extensions
2024-08-14 00:20:52 +02:00
Laura Hausmann
dbed1123aa
[backend/federation] Improve webfinger response reuse in UserResolver (ISH-364)
2024-08-14 00:00:35 +02:00
Laura Hausmann
acbedd3bae
[backend/federation] Support WebFinger reverse discovery (ISH-364)
...
This resolves federation issues with old versions of pixelfed, as well as various AP implementations that are not widely deployed.
2024-08-13 23:58:46 +02:00
Laura Hausmann
2506e42733
[backend/core] Remove no-duplicate request/job id from log messages
2024-08-13 20:57:06 +02:00
Laura Hausmann
dba3fc1a6a
[backend/core] Add request/job id to logs, improve log formatting
2024-08-13 20:47:06 +02:00
Laura Hausmann
86a5da5418
[backend/streaming] Switch to WriteLockingHashSet for cached streaming connection data
2024-08-13 17:39:59 +02:00
Laura Hausmann
649fc267c8
[backend/core] Fix typo
2024-08-13 04:50:18 +02:00
Laura Hausmann
be9a0f95fa
[backend/federation] Fixup preloaded mastodon JSON-LD context
...
Credits to puck for spotting this one.
2024-08-13 03:15:28 +02:00
Laura Hausmann
3132b6b8c9
[backend/core] Fix note thread mute handling inconsistencies
2024-08-13 03:11:09 +02:00
Laura Hausmann
2181d01e54
[backend/federation] Reject activities by suspended users
2024-08-13 00:02:21 +02:00
Laura Hausmann
097141a057
[backend/federation] Improve GTS compatibility fixes
2024-08-12 19:25:38 +02:00
Laura Hausmann
559e50da10
[backend/middleware] Always reject requests from suspended users
2024-08-12 19:13:46 +02:00
Laura Hausmann
7484db23c5
[backend/federation] Fix GTS compatibility
...
Another day, another fedi software referencing an invalid/nonexistent context by link.
2024-08-12 19:10:05 +02:00
Laura Hausmann
f7a5d86326
[backend/drive] Fix LibVips autorot error
...
The error message said that the operation must be mutable, but it only works when the operation is not mutable. Oh well.
2024-08-12 03:21:04 +02:00
Laura Hausmann
871c20c3fa
[backend/drive] Add warning logs when no image processor supports encoding the selected format
2024-08-12 03:21:04 +02:00
Laura Hausmann
67a62fadc9
[backend/drive] Move ImageProcessor.cs into the ImageProcessing subfolder
2024-08-12 03:21:04 +02:00
Laura Hausmann
e379ff3f60
[backend/configuration] Add config validation for the image processing pipeline
2024-08-12 03:21:04 +02:00
Laura Hausmann
e40cd7dbfd
[backend/drive] Add image/heic to the mime type allowlist
2024-08-12 03:21:03 +02:00
Laura Hausmann
1d31553199
[backend/drive] Add option to reject images that exceed the maximum media processing resolution
2024-08-12 03:21:03 +02:00
Laura Hausmann
f903a1d8a4
[backend/drive] Fix missing image processing resolution check
2024-08-12 03:21:03 +02:00
Laura Hausmann
7b3e9bbbca
[backend/drive] Fix duplicated dots in file extensions in some circumstances
2024-08-12 03:21:03 +02:00
Laura Hausmann
aac4be5893
[backend/drive] Add MIME detection capabilities to LibVips
2024-08-12 03:21:03 +02:00
Laura Hausmann
807a6fc95d
[backend] Refactor dictionary initializers to use the new syntax
2024-08-12 03:21:03 +02:00
Laura Hausmann
1fba1ab119
[backend/drive] Add ImageProcessorConcurrency configuration option, default it to 8 (was: unrestricted)
2024-08-12 03:21:03 +02:00
Laura Hausmann
aaf3be209d
[backend/drive] Add advanced image processing pipeline configuration options (ISH-436, ISH-446)
...
This commit allows advanced configuration of the image processing pipeline. Exposed options include the format (WebP, AVIF & JXL), as well as encoding parameters. These can be set individually for any combination of image version (original/thumbnail/public) & image origin (local/remote).
2024-08-12 03:21:03 +02:00
Laura Hausmann
c07bb35548
[backend/drive] Refactor ImageProcessor into a modular system
...
This commit lays the groundwork for a user-configurable image processing pipeline. It has exactly the same behavior as the old ImageProcessor, just modular & compartmentalized. It also adds support for AVIF & JXL encoding, though no code paths call it just yet.
2024-08-12 03:21:03 +02:00
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