Iceshrimp.NET/Iceshrimp.Backend/Controllers/Mastodon
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
..
Attributes [backend] Replace mastodon-specific middleware with modes triggered on MastodonApiControllerAttribute 2024-02-05 21:08:20 +01:00
Renderers [backend] Implement inline media 2024-12-13 22:19:30 +01:00
Schemas [backend/masto-client] Return attachment metadata when available (ISH-657) 2024-12-12 00:34:34 +01:00
Streaming [backend/streaming] Fix streaming updates not containing html markup if supported 2024-11-20 02:36:32 +01:00
AccountController.cs [sln] Reformat code 2024-11-20 00:48:29 +01:00
AnnouncementController.cs [backend] Implement inline media 2024-12-13 22:19:30 +01:00
AuthController.cs [sln] Apply code style 2024-11-20 00:48:29 +01:00
BiteController.cs [backend] Code cleanup 2024-10-25 06:49:28 +02:00
ConversationsController.cs [backend/federation] Improved reply backfill 2024-10-24 21:18:57 +02:00
FilterController.cs [backend/masto-client] Fix filter keyword edits failing (ISH-432) 2024-09-06 23:29:09 +02:00
InstanceController.cs [sln] Reformat code 2024-11-20 00:48:29 +01:00
ListController.cs [backend] Fix typo 2024-11-02 22:56:52 +01:00
MarkerController.cs [backend/asp] Refactor controllers 2024-07-06 17:12:22 +02:00
MediaController.cs [backend] Remove unused import 2024-12-12 00:41:24 +01:00
NotificationController.cs [backend] add mastoapi routes for biting notes and biting back users, add alternate route for biting users, and fix biting through mastoapi 2024-10-25 01:44:54 +02:00
PollController.cs [sln] Apply code style 2024-11-20 00:48:29 +01:00
PushController.cs [sln] Apply code style 2024-11-20 00:48:29 +01:00
SearchController.cs [sln] Reformat code 2024-11-20 00:48:29 +01:00
StatusController.cs [parsing] Switch to MfmSharp 2024-12-06 18:14:00 +01:00
TimelineController.cs [sln] Apply code style 2024-11-20 00:48:29 +01:00
WebSocketController.cs [backend/streaming] Echo back specified WebSocket protocol for mastodon streaming connections when set (ISH-635) 2024-12-06 18:55:37 +01:00