Mastodon API: MFM not rendered, mentions sometimes incorrect, hashtags, links, formatting, etc. missing #161

Open
opened 2023-08-29 19:31:41 +02:00 by VyrCossont · 1 comment
Contributor

tl;dr: MFM isn't rendered to HTML for Mastodon API clients because escapeMFM just dumps MFM as text. While there is special-purpose handling for mentions (addMentionsToStatus), it's implemented incorrectly.

Impact: Hashtags, links, formatting, etc. in posts don't show up for Mastodon API clients. Mentions can be incorrectly formatted and/or link to the wrong account.

Details: There's a lot to copy over, so please see my comments and screenshots on the equivalent Firefish bug.

tl;dr: MFM isn't rendered to HTML for Mastodon API clients because `escapeMFM` just dumps MFM as text. While there is special-purpose handling for mentions (`addMentionsToStatus`), it's implemented incorrectly. Impact: Hashtags, links, formatting, etc. in posts don't show up for Mastodon API clients. Mentions can be incorrectly formatted and/or link to the wrong account. Details: There's a lot to copy over, so please see my comments and screenshots on [the equivalent Firefish bug](https://git.joinfirefish.org/firefish/firefish/-/issues/10543#note_362).
jeder added the
bug
label 2023-08-29 20:23:47 +02:00
zotan self-assigned this 2023-08-30 16:44:01 +02:00
zotan referenced this issue from a commit 2023-11-10 04:19:14 +01:00
zotan referenced this issue from a commit 2023-11-10 04:19:14 +01:00
zotan closed this issue 2023-11-10 04:19:15 +01:00
Member

@zotan I think this issue auto-closed without being resolved because of the name of a cherry-pick commit.
Can you confirm that this is the case?

@zotan I think this issue auto-closed without being resolved because of the name of a cherry-pick commit. Can you confirm that this is the case?
jeder reopened this issue 2023-11-10 12:53:28 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: iceshrimp/iceshrimp#161
No description provided.