Commit graph

640 commits

Author SHA1 Message Date
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
3edda1e70e
[backend/api] Document 200 response for /users/{id}/unfollow (ISH-662) 2024-12-13 22:04:49 +01:00
Laura Hausmann
f013520b84
[backend] Remove unused import 2024-12-12 00:41:24 +01:00
Laura Hausmann
7dc3143089
[backend/masto-client] Return attachment metadata when available (ISH-657) 2024-12-12 00:34:34 +01:00
Laura Hausmann
55943bacc6
[backend/streaming] Echo back specified WebSocket protocol for mastodon streaming connections when set (ISH-635) 2024-12-06 18:55:37 +01:00
Laura Hausmann
00e157cc7e
[parsing] Switch to MfmSharp 2024-12-06 18:14:00 +01:00
Lilian
bd5db40489
[backend/web] Code reformat 2024-11-26 04:22:44 +01:00
Lilian
a130934787
[frontend/components] Add registration page and update login page style (ISH-472) 2024-11-26 04:21:30 +01:00
pancakes
0c8b79a489
[backend/core] Improve GetReactionsAsync 2024-11-24 05:40:00 +01:00
pancakes
54a899df0b
[backend/core] Add reaction to reaction notification 2024-11-24 05:40:00 +01:00
Kopper
dab3b7ed4c
[backend/federation] Hide private replies from the replies collection 2024-11-23 18:24:11 +01:00
Kopper
36d9a8cc49
[backend/federation] Context collection 2024-11-23 18:20:41 +01:00
Laura Hausmann
135737937c
[backend/api] Allow enrolling existing users into 2FA (ISH-626) 2024-11-23 02:10:35 +01:00
Laura Hausmann
ec6e334266
[backend/api] Add TOTP submission endpoint (ISH-580) 2024-11-21 20:04:21 +01:00
pancakes
09b39a64ea
[backend/api] Add basic instance info endpoint 2024-11-21 18:51:54 +01:00
Laura Hausmann
c0e8a6d680
[backend/streaming] Fix streaming updates not containing html markup if supported 2024-11-20 02:36:32 +01:00
Laura Hausmann
862d477dec
[backend/masto-client] Remove confusing status context logic
This does technically match Mastodon's behavior, but it doesn't match the behavior of iceshrimp-js, or the Iceshrimp.NET web API. It's also very confusing.
2024-11-20 01:56:41 +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
Lilian
ef753be067
[frontend] Code cleanup 2024-11-19 23:05:16 +01:00
Lilian
a5f8583d1f
[backend/web] Directly return VersionResponse 2024-11-19 23:05:16 +01:00
Lilian
aac01b6abf
[backend/web] Add controller for Webmanifest 2024-11-19 23:05:15 +01:00
Lilian
aa72e52124
[backend/web] Add version endpoint 2024-11-19 23:05:15 +01:00
Laura Hausmann
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
3b8a4b89a9
[backend/openapi] Replace ConsumesHybrid condition with FromHybrid 2024-11-18 19:02:43 +01:00
Laura Hausmann
ff59b07035
[backend/federation] Add short-lived cache for non-specific federation requests 2024-11-18 19:02:42 +01:00
pancakes
c11beba8a7
[backend] Add IsLocked to UserProfileResponse 2024-11-19 00:47:36 +10:00
pancakes
68684dbfcb
[backend] Add bot and cat fields to users 2024-11-17 13:44:29 +01:00
pancakes
14201c8489
[backend] Add UserProfile.Role 2024-11-17 13:44:29 +01:00
Laura Hausmann
8b3e25e7db
[backend/api] Report errors during acct user lookups to the client
This causes user lookups for blocked users to return a more specific error message than "No result found".
2024-11-15 18:59:28 +01:00
pancakes
28b3b56646 [backend/api] Add instance staff endpoint 2024-11-13 06:55:07 +01:00
Laura Hausmann
02765568db
[backend/api] Fix DbContext race condition in UserRenderer, refactor to make data flow clearer 2024-11-08 03:07:38 +01:00
pancakes
28548a5770
[backend] Add Emojis to UserResponse 2024-11-08 03:07:37 +01:00
Kopper
d22a21c7e7
[backend/federation] Render Create in /notes/{id}/activity when not a renote 2024-11-07 20:13:47 +01:00
Kopper
40b35a7bd2 [backend/akko-client] Handle "local" visibility (ISH-559) 2024-11-06 13:06:18 +03:00
pancakes
43307d655f
[backend] Don't include UserProfile 2024-11-03 12:41:43 +10:00
pancakes
e10fafa805
[backend/masto-client] Add accounts/{id}/remove_from_followers 2024-11-03 12:19:33 +10:00
pancakes
02e32c70c7 [backend/api] Check if user is following instead of if user exists 2024-11-03 03:00:58 +01:00
pancakes
ea5408c182 [backend/api] Add remove from followers endpoint 2024-11-03 03:00:58 +01:00
Laura Hausmann
f2853d2d40
[backend] Fix typo 2024-11-02 22:56:52 +01:00
Laura Hausmann
b4709e1e2a
[backend/api] Switch to common user update function in ProfileController.UpdateProfile (ISH-567) 2024-10-31 20:59:02 +01:00
pancakes
71a12261a4
[backend/api] Limit follow list imports to twice every 30 mins 2024-10-31 20:48:52 +01:00
pancakes
95ae04e4af
[backend] Download exported follow list directly instead of storing it as a file 2024-10-31 20:48:51 +01:00
pancakes
137dc0d0e6
[backend/core] Move import/export to ImportExportService and resolve imported users 2024-10-31 20:48:07 +01:00
pancakes
bfc36cbc48
[backend/api] Add follow list export endpoint 2024-10-31 20:48:07 +01:00
pancakes
62aa5f3075
[backend/api] Add follow list import endpoint 2024-10-31 20:48:07 +01:00
Laura Hausmann
e391aebce5
[backend] Consistently enforce https URIs 2024-10-29 18:43:58 +01:00
Laura Hausmann
b43e81b834
[backend/federation] Switch to Uri.TryCreate local fetch checks 2024-10-29 18:43:58 +01:00