From d49cc2992311a4d0d2aa5542b22c941ca0614dc8 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Wed, 1 Nov 2023 00:55:53 +0100 Subject: [PATCH] chore: add attribution --- packages/backend/src/core/MfmService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/core/MfmService.ts b/packages/backend/src/core/MfmService.ts index 91690aec1b..67c5d58ef5 100644 --- a/packages/backend/src/core/MfmService.ts +++ b/packages/backend/src/core/MfmService.ts @@ -389,6 +389,8 @@ export class MfmService { return `

${doc.body.innerHTML}

`; } + // the toMastoHtml function was taken from Iceshrimp and written by zotan and modified by marie to work with the current MK version + @bindThis public async toMastoHtml(nodes: mfm.MfmNode[] | null, mentionedRemoteUsers: IMentionedRemoteUsers = [], inline = false, quoteUri: string | null = null) { if (nodes == null) {