diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-11-01 00:55:53 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-11-01 00:55:53 +0100 |
| commit | d49cc2992311a4d0d2aa5542b22c941ca0614dc8 (patch) | |
| tree | 121ac9096260833bf3664614f9e10acf3f374580 | |
| parent | chore: remove debug line, change example.yml (diff) | |
| download | sharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.tar.gz sharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.tar.bz2 sharkey-d49cc2992311a4d0d2aa5542b22c941ca0614dc8.zip | |
chore: add attribution
| -rw-r--r-- | packages/backend/src/core/MfmService.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 `<p>${doc.body.innerHTML}</p>`; } + // 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) { |