Commit graph

2421 commits

Author SHA1 Message Date
Laura Hausmann
eab83fb500
[backend/api] Add logout endpoint (ISH-664) 2024-12-14 22:11:03 +01:00
Kopper
71cfa9e501
[backend/razor] Render inline media 2024-12-13 22:19:31 +01:00
Kopper
149fae3363
[backend] address review 2024-12-13 22:19:31 +01:00
Kopper
1e1364e2bb
[backend/masto-client] Add feature flag for inline media 2024-12-13 22:19:31 +01:00
Kopper
b6953236c3
[backend/masto-client] Fix edits breaking inline media 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
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
df6a3a95ac
[sln] Update dependencies 2024-12-12 00:41:16 +01:00
Laura Hausmann
16235a901f
[sln] Update MfmSharp version 2024-12-12 00:40:03 +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
911480afcb
[backend] Remove unused imports 2024-12-11 19:58:52 +01:00
Laura Hausmann
4e2358ef2a
[sln] Update MfmSharp version 2024-12-11 00:04:38 +01:00
Laura Hausmann
8e0b5b1d2e
[sln] Update MfmSharp version 2024-12-10 04:21:03 +01:00
Laura Hausmann
c7d88d6417
[sln] Update MfmSharp version 2024-12-10 04:18:05 +01:00
Laura Hausmann
63e7281bb3
[sln] Update dependencies 2024-12-07 22:31:52 +01:00
Lilian
0ddb2a0d03
[frontend/pages] Fix profile view regex (ISH-655) 2024-12-07 21:50:57 +01:00
Laura Hausmann
c032f56d37
[frontend/mfm] Fix HTML rendering of link nodes 2024-12-07 20:27:43 +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
e588dfaff2
[ci] Fix possible command injection vulnerabilities 2024-12-07 19:30:17 +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
6dc22d7316
[sln] Add more non-code files 2024-12-06 19:21:05 +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
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
f4f7833f36
[tests] Enable greater degree of parallelization 2024-12-06 18:14:47 +01:00
Laura Hausmann
00e157cc7e
[parsing] Switch to MfmSharp 2024-12-06 18:14:00 +01:00
Laura Hausmann
eeb171fb5a
[shared] Make all response DTOs with string identifiers implement IIdentifiable 2024-12-05 00:50:49 +01:00
Laura Hausmann
7b61865287
[backend/libmfm] Fix HTML markup being dropped for federation & public preview requests 2024-12-03 23:33:47 +01:00
Lilian
3dabdc09e8
[frontend/components] Adjust AttachmentView button size 2024-11-28 22:31:08 +01:00
Lilian
1b50e86b1d
[frontend/components] Display alt text under images in AttachmentViewer (ISH-641) 2024-11-28 21:59:26 +01:00
Lilian
6edfc66c3e
[frontend/components] Keyboard navigation for AttachmentViewer (ISH-641) 2024-11-28 21:34:09 +01:00
Lilian
e70cb01c5b
[frontend/components] Fix off by one error in AttachmentView navigation 2024-11-28 21:33:07 +01:00
Lilian
8a7bcde0c3
[frontend/components] Scroll to attachment that was clicked on (ISH-641) 2024-11-28 21:11:52 +01:00
Lilian
35c4babd63
[frontend/components] Fix menu positioning 2024-11-28 17:55:14 +01:00
Lilian
1d0a297768
[frontend] Fix incorrect CSS colors 2024-11-28 17:36:09 +01:00
Lilian
ac2ebd346e
[frontend/pages] Implement user picker on login page (ISH-648) 2024-11-28 17:19:56 +01:00
Laura Hausmann
156a317adf
[docs] Update changelog 2024-11-27 23:02:14 +01:00
Laura Hausmann
c6408805d0
[sln] Update version to be in line with security hotfix release
This avoids "am I vulnerable to this?" confusion if running a :dev image or a -git package.
2024-11-27 22:08:46 +01:00
Laura Hausmann
112d6affd0
[parsing/mfm] Improve urlNode(Brackets) performance & reliability, improve performance of long inputs for some node types 2024-11-27 20:50:54 +01:00
Laura Hausmann
5a3d4b9bb4
[parsing/mfm] Improve aggregateText & aggregateTextInline performance 2024-11-27 05:46:25 +01:00
Laura Hausmann
bd56788542
[parsing/mfm] Optimize restOfLineContains case for single char, remove unnecessary pushLine/assertLine calls 2024-11-27 04:53:24 +01:00
Laura Hausmann
92c6e01988
[parsing/mfm] Only trigger recursion depth update once per recursion 2024-11-27 04:53:24 +01:00
Laura Hausmann
6d04870c50
[parsing/mfm] Reuse error messages 2024-11-27 04:53:24 +01:00
Laura Hausmann
59ab914f0a
[parsing/mfm] Further limit recursion depth to 20 2024-11-27 04:53:24 +01:00
Laura Hausmann
d6f4f5bd51
[backend/libmfm] Wrap MFM payloads that cause the parser to time out in a MfmPlainNode 2024-11-27 04:53:24 +01:00
Laura Hausmann
556ada822f
[parsing/mfm] Emit special node type when the parser times out 2024-11-27 04:53:24 +01:00
Laura Hausmann
753fbdefe4
[parsing/mfm] Check if the rest of the stream contains a closing tag before parsing asymmetric nodes 2024-11-27 04:53:24 +01:00
Laura Hausmann
a342e3df25
[parsing/mfm] Fail & fall back to text node when parsing takes more than 500ms (backend) / 2000ms (wasm) 2024-11-27 04:53:23 +01:00