Commit graph

43 commits

Author SHA1 Message Date
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
2ef78e3f41
[parsing] Add strike html tag support, keep italic/bold/strike in html tag form when reserializing 2024-11-17 16:44:05 +01:00
Laura Hausmann
73783fa0ee
[backend/libmfm] Fix MfmSerializer dropping leading & trailing whitespace on recursive calls 2024-11-10 22:24:55 +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
fa81be967a
[parsing] Add support for advanced MFM (ISH-257) 2024-10-19 02:37:46 +02: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
b4c2712172
[parsing/tests] Fix tests 2024-09-26 18:49:08 +02:00
Laura Hausmann
c02af726e1
[parsing/mfm] Rework codeblock node parsing & serialization 2024-09-26 01:12:21 +02:00
Laura Hausmann
5b3dec0a08
[parsing/mfm] Further improve codeblock newline handling 2024-09-26 00:37:25 +02:00
Laura Hausmann
0fc667527f
[parsing/mfm] Fix handling of newlines surrounding code blocks 2024-09-26 00:33:26 +02:00
Laura Hausmann
1d4ddb1190
[backend/razor] Display emoji in public preview 2024-09-24 02:17:56 +02:00
Laura Hausmann
c3c85419e4
[backend/libmfm] When converting from HTML, shorten http & -s links with identical text and link components 2024-09-23 01:57:33 +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
4ee4fd53c4
[parsing] Add support for MfmQuoteNode 2024-09-07 01:38:23 +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
5599805196
[backend/libmfm] Fix code block serialization 2024-04-28 23:46:05 +02:00
Laura Hausmann
8c5358efd9
[backend/libmfm] Correctly handle incoming italic html markup 2024-04-28 20:08:26 +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
f5aa7f6ff6
[backend/libmfm] Improve custom emoji regex 2024-03-17 17:11:47 +01:00
Laura Hausmann
a408fa247a
[backend] Code cleanup 2024-03-17 13:36:08 +01:00
Laura Hausmann
e65c76ca39
[backend/masto-client] Render quote uris inline (ISH-177) 2024-03-13 03:50:55 +01:00
Laura Hausmann
d343c7f469
[backend/libmfm] Improve HashtagNodeParser (ISH-117) 2024-03-04 03:03:31 +01:00
Laura Hausmann
24786bb0e7
[backend/libmfm] Implement remaining node types in MfmSerializer (ISH-65) 2024-03-01 23:25:05 +01:00
Laura Hausmann
f07217b390
[backend/masto-client] Respect SupportsHtmlFormatting setting (ISH-88) 2024-03-01 22:37:59 +01:00
Laura Hausmann
341a4a8ee5
[backend/libmfm] Further improve mfm mentions parser 2024-02-26 20:24:56 +01:00
Laura Hausmann
9307023f96
[backend/libmfm] Improve mentions parsing 2024-02-26 19:23:13 +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
6f4d6df602
[backend/libmfm] Fix italic text getting serialized as strikethrough 2024-02-14 03:01:35 +01:00
Laura Hausmann
61c73f1761
[backend/libmfm] Render unresolved mentions as plain nodes in html-to-mfm 2024-02-12 22:26:11 +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