Commit graph

30 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
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
5dee8bc783
[parsing] Bump MfmSharp version 2024-12-07 04:41:00 +01:00
Laura Hausmann
00e157cc7e
[parsing] Switch to MfmSharp 2024-12-06 18:14:00 +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
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
525bd02022
[backend/libmfm] Fix broken rendering of mentions of local users in some circumstances (ISH-567)
This was caused because of an inconsistency of whether to set the account domain as a fallback value or not. Therefore, invocations with the mentioned local user host not having a fallback value would cause broken mention rendering, e.g. in bios/profile fields.
2024-10-31 21:24:07 +01:00
Laura Hausmann
9d1a21e2d9
[backend/razor] Move public preview to Blazor SSR (razor components) 2024-10-02 02:17:51 +02:00
Laura Hausmann
7662c28745
[backend/database] Canonicalize punycode host representations to lowercase 2024-10-02 01:16:25 +02:00
Laura Hausmann
1d4ddb1190
[backend/razor] Display emoji in public preview 2024-09-24 02:17:56 +02:00
Laura Hausmann
01b2702af5
[backend/masto-client] Fix blockquote handling for some clients 2024-09-13 02:46:44 +02:00
Laura Hausmann
37707a0712
[backend/mfm] Only use div as root element for public preview in MfmConverter.ToHtmlAsync 2024-09-07 01:57:00 +02:00
Laura Hausmann
ec92483b30
[backend/mfm] Prevent MfmConverter.ToHtmlAsync from generating invalid html trees 2024-09-07 01:57:00 +02:00
Laura Hausmann
9c7c5595f3
[backend/masto-client] Fix quote/renote indicators sometimes being rendered incorrectly 2024-07-04 00:38:46 +02:00
Laura Hausmann
df3a7bdfe5
[backend] Apply formatting rules 2024-06-29 01:06:19 +02:00
Laura Hausmann
fd5a524a8c
[backend/libmfm] Add missing @ when rendering unresolved mentions to html 2024-05-17 22:27:16 +02:00
Laura Hausmann
a1120ac1e1
[backend/libmfm] Replace non-breaking space characters with regular spaces when converting from html 2024-05-16 19:30:27 +02:00
Laura Hausmann
54d3c4e8d3
[backend] Fix build 2024-05-01 16:58:44 +02:00
Laura Hausmann
d31860dbb3
[backend/core] Track renote/reply uri for notes where the target is inaccessible at time of ingestion (ISH-287) 2024-04-30 00:15:58 +02:00
Laura Hausmann
9bd421c3a0
[backend] Replace old MfmParser with the new F# implementation (ISH-112) 2024-03-24 23:10:39 +01:00
Laura Hausmann
e65c76ca39
[backend/masto-client] Render quote uris inline (ISH-177) 2024-03-13 03:50:55 +01:00
Laura Hausmann
f07217b390
[backend/masto-client] Respect SupportsHtmlFormatting setting (ISH-88) 2024-03-01 22:37:59 +01:00
Laura Hausmann
c450903051
[backend/federation] Handle mentions in non-misskey user bios & user fields correctly (ISH-92) 2024-02-26 19:02:57 +01:00
Laura Hausmann
d4e1d92771
[backend] Code cleanup: switch to BSD braces style, tweak code style 2024-02-17 02:31:00 +01:00
Laura Hausmann
bf916f7046
[backend/federation] Handle mention parsing edge cases properly (ISH-50) 2024-02-12 21:59:19 +01:00
Laura Hausmann
67d1d776c8
[backend/federation] Basic mentions handling (ISH-38)
This implementation adds handling of incoming mentions, including rewriting non-canonical mentions of split domain users into their canonical form when inserting notes into the database.
2024-02-11 18:50:28 +01:00
Laura Hausmann
88a180666d
[backend/federation] Reject notes with text length > 100k characters 2024-02-06 23:04:56 +01:00
Laura Hausmann
27ecd27ba0
[backend/mfm] Move MFM handling code into the main backend project 2024-02-02 18:04:13 +01:00
Renamed from Iceshrimp.MfmSharp/Conversion/MfmConverter.cs (Browse further)