Commit graph

1348 commits

Author SHA1 Message Date
Laura Hausmann
b15cc7c3e1
[backend/core] Fix runtime ArrayTypeMismatchException in UserProfileMentionsResolver 2024-12-19 20:51:17 +01:00
Laura Hausmann
6be761b2d3
[backend/federation] Fix account migration with remote instances that require alsoKnownAs to be an array 2024-12-18 01:59:47 +01:00
Laura Hausmann
49e9c6d825
[backend] Reformat DriveService.cs 2024-12-16 21:30:35 +01:00
Laura Hausmann
48e688e514
[backend/drive] Normalize empty / whitespace alt text to null 2024-12-16 21:30:26 +01:00
Laura Hausmann
ce646e84d9
[backend/core] Fix runtime ArrayTypeMismatchException in EmojiService 2024-12-15 01:09:06 +01:00
Laura Hausmann
b8ba778842
[backend/core] Improve inline media lookup performance 2024-12-15 01:05:56 +01:00
Laura Hausmann
f1f79a3435
[backend/api] Add session management endpoints 2024-12-15 01:03:31 +01:00
Laura Hausmann
e8842d70a2
[backend/core] Fix runtime ArrayTypeMismatchException in NoteService 2024-12-15 00:36:19 +01:00
Laura Hausmann
010dd2bb96
[backend/core] Fix CW edits not being processed correctly, replace CW line endings during note ingest 2024-12-15 00:34:29 +01:00
Laura Hausmann
2453e0f673
[backend/database] Normalize note text & user bio line endings 2024-12-15 00:22:31 +01:00
Laura Hausmann
9865f3dde7
[backend/core] Replace MFM line endings during user/note ingestion
This saves significant amounts of time & memory during parsing.
2024-12-15 00:11:31 +01:00
Kopper
149fae3363
[backend] address review 2024-12-13 22:19:31 +01:00
Kopper
1e1364e2bb
[backend/masto-client] Add feature flag for inline media 2024-12-13 22:19:31 +01:00
Kopper
b6953236c3
[backend/masto-client] Fix edits breaking inline media 2024-12-13 22:19:31 +01:00
Kopper
89060599eb
[backend] Implement inline media
Inline media can be created by:

1. Attach media to note as usual
2. Copy media URL (public one, for remote instances)
3. Use the new $[media url ] MFM extension to place it wherever you
   wish. (The trailing space is necessary as the parser currently
   treats the closing ] as a part of the URL)

The Iceshrimp frontend may make this easier later on (by having a
"copy inline MFM" button on attachments, maybe?)

Federates as <img>, <video>, <audio>, or <a download> HTML tags
depending on the media type for interoperability. (<a download> is
not handled for incoming media yet).

The media will also be present in the attachments field, both as a
fallback for instance software that do not support inline media,
but also for MFM federation to discover which media it is allowed to
embed (and metadata like alt text and sensitive-ness). This is not
required for remote instances sending inline media, as it will be
extracted out from the HTML.

The Iceshrimp frontend does not render inline media yet. That is
blocked on #67.
2024-12-13 22:19:30 +01:00
Laura Hausmann
911480afcb
[backend] Remove unused imports 2024-12-11 19:58:52 +01:00
Laura Hausmann
d4a24be837
[backend/libmfm] Fix HTML rendering of link nodes 2024-12-07 20:27:36 +01:00
Laura Hausmann
5a6fbcef13
[backend/libmfm] Fix HTML rendering when text formatting is not supported 2024-12-07 20:20:45 +01:00
Laura Hausmann
b160a97f0e
[backend/core] Fix ArrayTypeMismatchException in APMentionsResolver 2024-12-07 04:41:00 +01:00
Laura Hausmann
5dee8bc783
[parsing] Bump MfmSharp version 2024-12-07 04:41:00 +01:00
Laura Hausmann
443f0682d2
[backend/core] Fix out of bounds array read in APMentionsResolver 2024-12-06 19:07:17 +01:00
Laura Hausmann
00e157cc7e
[parsing] Switch to MfmSharp 2024-12-06 18:14:00 +01:00
Laura Hausmann
7b61865287
[backend/libmfm] Fix HTML markup being dropped for federation & public preview requests 2024-12-03 23:33:47 +01:00
Laura Hausmann
d6f4f5bd51
[backend/libmfm] Wrap MFM payloads that cause the parser to time out in a MfmPlainNode 2024-11-27 04:53:24 +01:00
Laura Hausmann
a76f70d030
[backend/database] Convert DatabaseContext to use LF newlines 2024-11-23 21:34:30 +01:00
Laura Hausmann
853f598bc4
[backend/razor] Add "top delayed" section to queue dashboard 2024-11-23 21:34:30 +01:00
Kopper
36d9a8cc49
[backend/federation] Context collection 2024-11-23 18:20:41 +01:00
Laura Hausmann
9989aae29e
[backend/libmfm] Set alt text for emoji in public preview 2024-11-22 22:42:25 +01:00
Laura Hausmann
ec6e334266
[backend/api] Add TOTP submission endpoint (ISH-580) 2024-11-21 20:04:21 +01:00
Laura Hausmann
fe8c736821
[backend/federation] Limit UserResolver invocations in NoteService (ISH-622) 2024-11-21 00:45:30 +01:00
Laura Hausmann
863c9ca9c9
[backend/federation] Improve actor & note validation (ISH-547) 2024-11-20 23:54:32 +01:00
Laura Hausmann
727ba75d0e
[backend/federation] Deduplicate recipients in ActivityDeliverService 2024-11-20 01:31:14 +01:00
Laura Hausmann
48bb81af1c
[backend/core] Deliver note creates & updates to reply author even if they're not mentioned 2024-11-20 01:30:56 +01:00
Laura Hausmann
ccdc816c26
[backend] Update ReSharper rules 2024-11-20 01:22:53 +01:00
Laura Hausmann
00d3248b8a
[backend] Fix build 2024-11-20 01:22:09 +01:00
Laura Hausmann
51e4846635
[backend/core] Revert Task.ContinueWithResult naming 2024-11-20 01:14:50 +01:00
Laura Hausmann
a762a9201e
[backend/core] Revert IAsyncEnumerable naming 2024-11-20 01:12:32 +01:00
Laura Hausmann
24b412bd75
[sln] Reformat code 2024-11-20 00:48:29 +01:00
Laura Hausmann
7dec2514da
[sln] Apply code style 2024-11-20 00:48:29 +01:00
Laura Hausmann
55f7b48d80
[backend/asp] Fix BlazorSsrHandoffMiddleware not getting triggered 2024-11-19 20:06:06 +01:00
Laura Hausmann
579f8c233a
[backend/core] Code cleanup 2024-11-19 19:38:31 +01:00
Laura Hausmann
0ee5ff377e
[backend] Move OutputCacheMiddleware into UseCustomMiddleware to make the order more obvious 2024-11-18 19:20:23 +01:00
Laura Hausmann
dd7b7634c6
[backend/core] Convert scoped services with request-specific properties to singletons by utilizing AsyncLocal<T> 2024-11-18 19:02:44 +01:00
Laura Hausmann
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
705e061f74
[backend/asp] Refactor middleware stack
This commit splits the request pipeline conditionally instead of invoking every middleware in the stack.

It also simplifies middleware instantiation by using runtime discovery, allowing for Plugins to add Middleware.
2024-11-18 19:02:44 +01:00
Laura Hausmann
4af69a6afa
[backend/asp] Add ExceptionVerbosity level Debug 2024-11-18 19:02:43 +01:00
Laura Hausmann
f252c1a85e
[backend] Code cleanup 2024-11-18 19:02:43 +01:00
Laura Hausmann
86762dc386
[backend/asp] Make BlazorSsrHandoffMiddleware less hacky 2024-11-18 19:02:43 +01:00
Laura Hausmann
3b8a4b89a9
[backend/openapi] Replace ConsumesHybrid condition with FromHybrid 2024-11-18 19:02:43 +01:00
Laura Hausmann
2c0e0d0922
[backend/openapi] Don't regenerate OpenAPI schemas files on every request 2024-11-18 19:02:43 +01:00