Commit graph

423 commits

Author SHA1 Message Date
Laura Hausmann
9ff79c92e0
[backend/libmfm] Improve performance of AngleSharp calls for MFM-HTML conversion, improve UrlNode HTML representation
This makes sure the AngleSharp owner document is only created once per application lifecycle, and replaces all async calls with their synchronous counterparts (since the input is already loaded in memory, using async for this just creates overhead)
2025-03-24 18:05:21 +01:00
Laura Hausmann
f3999f80be
[backend/api] Add support for creating, forwarding & resolving reports (ISH-116) 2025-03-11 20:40:23 +01:00
Laura Hausmann
8bbb5c1f98
[backend/federation] Handle incoming ASFlag activities (ISH-116) 2025-03-11 00:51:10 +01:00
Laura Hausmann
78bd70e2ab
[backend/federation] Apply code style in ActivityHandlerService.cs 2025-03-11 00:18:23 +01:00
Kopper
26d86eee65
[backend/federation] Fix null values in LDLocalizedString 2025-02-26 00:17:20 +01:00
Laura Hausmann
9f33e71b0f
[backend/federation] Wrap ASEmoji with colons on either side
This fixes emoji federation with NodeBB
2025-02-17 20:47:07 +01:00
Laura Hausmann
7c93c5591a
[backend/core] Populate & render emoji media type if available 2025-02-17 20:31:41 +01:00
pancakes
2262830a2e
[backend/federation] Remove namespace from pronouns in LD context 2025-02-05 18:10:42 +01:00
pancakes
d2e1f186e8
[backend/federation] Don't use a constant for pancakes:pronouns 2025-02-05 18:10:42 +01:00
pancakes
dcc03c3eb6
[backend] Remove unused imports 2025-02-05 18:10:41 +01:00
pancakes
df9d3388cf
[backend/federation] Switch from pancakes:Pronouns (V1) to pancakes:pronouns (V2) 2025-02-05 18:10:00 +01:00
pancakes
2b25affa2b
[backend/federation] Use LDLocalizedString for pancakes:Pronouns 2025-02-05 18:09:59 +01:00
pancakes
9e713419ce
[backend/federation] Add LDLocalizedString 2025-02-05 18:09:59 +01:00
pancakes
2aa6eb608b
[backend/federation] Federate user pronouns 2025-02-05 18:09:59 +01:00
pancakes
a5fedc930c
[backend/federation] Include media type for avatar and banner in UserRenderer 2025-01-30 11:11:22 +01:00
pancakes
fdadc41c61
[backend/federation] Include alt text for avatar and banner in UserRenderer 2025-01-30 11:11:21 +01:00
Laura Hausmann
1d64af7ed0
[backend/federation] Fix like activities with content not being processed as reactions 2025-01-27 15:57:54 +01:00
Laura Hausmann
905b7d173a
[backend/core] Switch to Iceshrimp.Utils.Common for Result<T> 2025-01-20 17:00:03 +01:00
Laura Hausmann
8acb9bd932
[backend/federation] Federate processed images with the correct mime type 2025-01-09 12:40:54 +01:00
Laura Hausmann
113bd98b0e
[backend/drive] Proxy remote media by default 2025-01-09 12:36:34 +01:00
Laura Hausmann
3bafb0ec7c
[backend/federation] Improve UserResolver uri/acct mismatch error message 2025-01-09 07:54:07 +01:00
Laura Hausmann
c3ca7d389d
[backend/federation] Use Uri struct comparison instead of string comparison when validating EnforceUri in UserResolver (ISH-679) 2025-01-07 06:13:07 +01:00
Laura Hausmann
16bd8fb1f9
[backend/federation] Preload w3id/identity-v1 context definition 2025-01-05 10:16:57 +01:00
Laura Hausmann
49c85543a0
[backend/federation] Make UserResolver fall back to building the acct from actor uri when it's not contained in WebFinger response 2025-01-05 06:22:43 +01:00
Laura Hausmann
729e32594b
[backend/federation] Set MkContent to empty string when quote without text is rendered 2025-01-05 04:26:31 +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
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
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
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
Kopper
36d9a8cc49
[backend/federation] Context collection 2024-11-23 18:20:41 +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
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
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
6c76b2b2c5
[backend] Switch params methods to IEnumerable<T> 2024-11-18 19:02:41 +01:00
Laura Hausmann
a18c1c59ea
[parsing] Fix compatibility with the new F# reference type nullability checks 2024-11-18 19:02:41 +01:00
Kopper
d22a21c7e7
[backend/federation] Render Create in /notes/{id}/activity when not a renote 2024-11-07 20:13:47 +01:00
pancakes
925ba3c751
[backend] Directly render ASReject 2024-11-03 13:02:12 +10:00
Laura Hausmann
f2853d2d40
[backend] Fix typo 2024-11-02 22:56:52 +01:00
Laura Hausmann
de29780321
[backend/federation] Don't recompute clock skew timespan on every invocation in HttpSignature.VerifyAsync
This commit also tightens the maximum allowed clock skew to a much more reasonable 5 minutes.
2024-10-30 18:13:11 +01:00
Laura Hausmann
fbdab96f9d
[backend] Switch to more efficient TimeSpan/DateTime/-Offset handling where applicable 2024-10-30 18:13:11 +01:00
Laura Hausmann
a5f292cdb3
[backend/core] Fix UserResolver regression 2024-10-29 20:38:51 +01:00
Laura Hausmann
e391aebce5
[backend] Consistently enforce https URIs 2024-10-29 18:43:58 +01:00